File tree Expand file tree Collapse file tree 4 files changed +43
-2
lines changed
examples/DEMO_Generating_Random_Key_Non_FreeRTOS Expand file tree Collapse file tree 4 files changed +43
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
# Updates
10
10
11
+ - v1.1.1
12
+ - Added the example, DEMO_Generating_Random_Key_Non_FreeRTOS for Arduino
13
+
11
14
- v1.1.0
12
15
- Added the function to generate a random key
13
16
- Added switching to red color for one minute if it has a random key
Original file line number Diff line number Diff line change
1
+ #include < TFT_eSPI.h>
2
+ #include < SPI.h>
3
+ #include < DigitalRainAnim.h>
4
+ TFT_eSPI tft = TFT_eSPI();
5
+
6
+ DigitalRainAnim digitalRainAnim = DigitalRainAnim();
7
+
8
+ void setup ()
9
+ {
10
+ Serial.begin (115200 );
11
+ tft.begin ();
12
+ tft.setRotation (0 );
13
+ tft.fillScreen (TFT_BLACK);
14
+ digitalRainAnim.init (&tft);
15
+ }
16
+
17
+ void loop ()
18
+ {
19
+ digitalRainAnim.loop ();
20
+
21
+ while (Serial.available () > 0 ){
22
+ String str = Serial.readString ();
23
+ if (str.indexOf (" send" ) > -1 ){
24
+ keyMode ();
25
+ }else {
26
+ normalMode ();
27
+ }
28
+ }
29
+ }
30
+
31
+ void keyMode (){
32
+ String newKey = digitalRainAnim.getKey (0 ).c_str ();
33
+ Serial.println (newKey);
34
+ }
35
+
36
+ void normalMode (){
37
+ digitalRainAnim.resetKey ();
38
+ }
Original file line number Diff line number Diff line change 7
7
"type" : " git" ,
8
8
"url" : " https://github.com/0015/TP_Arduino_DigitalRain_Anim.git"
9
9
},
10
- "version" : " 1.1.0 " ,
10
+ "version" : " 1.1.1 " ,
11
11
"frameworks" : " arduino" ,
12
12
"platforms" : " *"
13
13
}
Original file line number Diff line number Diff line change 1
1
name =Digital Rain Animation for TFT_eSPI
2
- version =1.1.0
2
+ version =1.1.1
3
3
author =Eric Nam
4
4
maintainer =Eric Nam <thatprojectstudio@gmail.com>
5
5
sentence =A library that represents Digital Rain Animation on color displays that support TFT_eSPI
You can’t perform that action at this time.
0 commit comments