Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Jan 14, 2021
1 parent 037583a commit f93b8f7
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

# Updates

- v1.1.1
- Added the example, DEMO_Generating_Random_Key_Non_FreeRTOS for Arduino

- v1.1.0
- Added the function to generate a random key
- Added switching to red color for one minute if it has a random key
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#include <TFT_eSPI.h>
#include <SPI.h>
#include <DigitalRainAnim.h>
TFT_eSPI tft = TFT_eSPI();

DigitalRainAnim digitalRainAnim = DigitalRainAnim();

void setup()
{
Serial.begin(115200);
tft.begin();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);
digitalRainAnim.init(&tft);
}

void loop()
{
digitalRainAnim.loop();

while(Serial.available() > 0 ){
String str = Serial.readString();
if(str.indexOf("send") > -1){
keyMode();
}else{
normalMode();
}
}
}

void keyMode(){
String newKey = digitalRainAnim.getKey(0).c_str();
Serial.println(newKey);
}

void normalMode(){
digitalRainAnim.resetKey();
}
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "git",
"url": "https://github.com/0015/TP_Arduino_DigitalRain_Anim.git"
},
"version": "1.1.0",
"version": "1.1.1",
"frameworks": "arduino",
"platforms": "*"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Digital Rain Animation for TFT_eSPI
version=1.1.0
version=1.1.1
author=Eric Nam
maintainer=Eric Nam <[email protected]>
sentence=A library that represents Digital Rain Animation on color displays that support TFT_eSPI
Expand Down

0 comments on commit f93b8f7

Please sign in to comment.