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 88
99# Updates
1010
11+ - v1.1.1
12+ - Added the example, DEMO_Generating_Random_Key_Non_FreeRTOS for Arduino
13+
1114 - v1.1.0
1215 - Added the function to generate a random key
1316 - 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 77 "type" : " git" ,
88 "url" : " https://github.com/0015/TP_Arduino_DigitalRain_Anim.git"
99 },
10- "version" : " 1.1.0 " ,
10+ "version" : " 1.1.1 " ,
1111 "frameworks" : " arduino" ,
1212 "platforms" : " *"
1313}
Original file line number Diff line number Diff line change 11name =Digital Rain Animation for TFT_eSPI
2- version =1.1.0
2+ version =1.1.1
33author =Eric Nam
44maintainer =Eric Nam <thatprojectstudio@gmail.com>
55sentence =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