Skip to content

Commit f93b8f7

Browse files
author
Eric
committed
v1.1.1
1 parent 037583a commit f93b8f7

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
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
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
}

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Digital Rain Animation for TFT_eSPI
2-
version=1.1.0
2+
version=1.1.1
33
author=Eric Nam
44
maintainer=Eric Nam <thatprojectstudio@gmail.com>
55
sentence=A library that represents Digital Rain Animation on color displays that support TFT_eSPI

0 commit comments

Comments
 (0)