-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric
committed
Nov 8, 2021
1 parent
2b60967
commit cd01890
Showing
14 changed files
with
224 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#include <TFT_eSPI.h> | ||
#include <SPI.h> | ||
#include <DigitalRainAnim.h> | ||
TFT_eSPI tft = TFT_eSPI(); | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnim digitalRainAnim = DigitalRainAnim(); | ||
|
||
void setup() | ||
{ | ||
tft.begin(); | ||
tft.setRotation(0); | ||
tft.fillScreen(TFT_BLACK); | ||
|
||
digitalRainAnim.init(&tft); | ||
} | ||
|
||
void loop() | ||
{ | ||
digitalRainAnim.loop(); | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
examples/DEMO_Anim_Control_with_Button2/DEMO_Anim_Control_with_Button2.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//Button2 Library | ||
//https://github.com/LennartHennigs/Button2 | ||
|
||
#include <TFT_eSPI.h> | ||
#include <DigitalRainAnim.h> | ||
#include "Button2.h" | ||
|
||
#define RIGHT_BUTTON_PIN 35 | ||
#define LEFT_BUTTON_PIN 0 | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnim digitalRainAnim = DigitalRainAnim(); | ||
|
||
Button2 rButton, lButton; | ||
|
||
void setup() | ||
{ | ||
tft.begin(); | ||
tft.setRotation(0); | ||
tft.fillScreen(TFT_BLACK); | ||
digitalRainAnim.init(&tft, 3, 20, 3, 20, 60); | ||
|
||
rButton.begin(RIGHT_BUTTON_PIN); | ||
rButton.setClickHandler(click); | ||
|
||
lButton.begin(LEFT_BUTTON_PIN); | ||
lButton.setClickHandler(click); | ||
} | ||
|
||
void loop() | ||
{ | ||
digitalRainAnim.loop(); | ||
rButton.loop(); | ||
lButton.loop(); | ||
} | ||
|
||
void click(Button2& btn) { | ||
if (btn == rButton) { | ||
digitalRainAnim.pause(); | ||
} else if (btn == lButton) { | ||
digitalRainAnim.resume(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <TFT_eSPI.h> | ||
#include <DigitalRainAnim.h> | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnim digitalRainAnim = DigitalRainAnim(); | ||
|
||
void setup() | ||
{ | ||
tft.begin(); | ||
tft.setRotation(0); | ||
tft.fillScreen(TFT_BLACK); | ||
|
||
digitalRainAnim.init(&tft, true); | ||
} | ||
|
||
void loop() | ||
{ | ||
digitalRainAnim.loop(); | ||
} |
4 changes: 2 additions & 2 deletions
4
...Random_Key/DEMO_Generating_Random_Key.ino → ...S/DEMO_Generating_Random_Key_FreeRTOS.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
examples/DEMO_Generating_Random_Key_Non_FreeRTOS/DEMO_Generating_Random_Key_Non_FreeRTOS.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
examples/DEMO_Set_Alphabet_Only/DEMO_Set_Alphabet_Only.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <TFT_eSPI.h> | ||
#include <DigitalRainAnim.h> | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnim digitalRainAnim = DigitalRainAnim(); | ||
|
||
void setup() | ||
{ | ||
tft.begin(); | ||
tft.setRotation(0); | ||
tft.fillScreen(TFT_BLACK); | ||
|
||
digitalRainAnim.init(&tft, false, true); | ||
} | ||
|
||
void loop() | ||
{ | ||
digitalRainAnim.loop(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <TFT_eSPI.h> | ||
#include <DigitalRainAnim.h> | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnim digitalRainAnim = DigitalRainAnim(); | ||
|
||
void setup() | ||
{ | ||
tft.begin(); | ||
tft.setRotation(0); | ||
tft.fillScreen(TFT_BLACK); | ||
|
||
digitalRainAnim.init(&tft); | ||
digitalRainAnim.setTextColor(0, 0, 255); | ||
digitalRainAnim.setBGColor(255, 255, 255); | ||
digitalRainAnim.setHeadCharColor(255, 0, 0); | ||
} | ||
|
||
void loop() | ||
{ | ||
digitalRainAnim.loop(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <TFT_eSPI.h> | ||
#include <DigitalRainAnim.h> | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnim digitalRainAnim = DigitalRainAnim(); | ||
|
||
void setup() | ||
{ | ||
tft.begin(); | ||
tft.setRotation(0); | ||
tft.fillScreen(TFT_BLACK); | ||
|
||
digitalRainAnim.init(&tft, 10, 30, 5, 25, 60); | ||
} | ||
|
||
void loop() | ||
{ | ||
digitalRainAnim.loop(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"name": "Digital Rain Animation for TFT_eSPI", | ||
"name": "Digital Rain Animation for TFT_eSPI using ESP32, ESP8266", | ||
"keywords": "TFT_eSPI, Animation, Matrix, Digital, Rain", | ||
"description": "We love the movie Matrix. Feel the Digital Rain Animation effect in the movie. You can make the matrix effect on your display easily.", | ||
"repository": | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/0015/TP_Arduino_DigitalRain_Anim.git" | ||
}, | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"frameworks": "arduino", | ||
"platforms": "*" | ||
} |
Oops, something went wrong.