Skip to content

Commit cd01890

Browse files
author
Eric
committed
v1.2.0
1 parent 2b60967 commit cd01890

File tree

14 files changed

+224
-79
lines changed

14 files changed

+224
-79
lines changed

License.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Eric Nam.
3+
Copyright (c) 2021 Eric Nam.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# Digital Rain Animation for TFT_eSPI
1+
# Digital Rain Animation for TFT_eSPI using ESP32, ESP8266
22

33
A library that represents Digital Rain Animation on color displays that support TFT_eSPI
44
Search for this library in the Arduino Library Manager and download it or clone it yourself from Github.
5-
This library is built on TFT_eSPI. This works properly on all color displays supported by TFT_eSPI.
6-
7-
*Unfortunately, it cannot be used as a problem with C++ standard libraries on AVR boards.
5+
This library is built on TFT_eSPI. Currently only works with ESP32 and ESP3266.
86

97
# Updates
108

9+
- v1.2.0
10+
- Added color change features. (BG color, Text Color, Header Char Color)
11+
1112
- v1.1.1
1213
- Added the example, DEMO_Generating_Random_Key_Non_FreeRTOS
1314

examples/DEMO/DEMO.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#include <TFT_eSPI.h>
2-
#include <SPI.h>
32
#include <DigitalRainAnim.h>
4-
TFT_eSPI tft = TFT_eSPI();
53

4+
TFT_eSPI tft = TFT_eSPI();
65
DigitalRainAnim digitalRainAnim = DigitalRainAnim();
76

87
void setup()
98
{
109
tft.begin();
1110
tft.setRotation(0);
1211
tft.fillScreen(TFT_BLACK);
12+
1313
digitalRainAnim.init(&tft);
1414
}
1515

1616
void loop()
1717
{
1818
digitalRainAnim.loop();
19-
}
19+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
//Button2 Library
2+
//https://github.com/LennartHennigs/Button2
3+
4+
#include <TFT_eSPI.h>
5+
#include <DigitalRainAnim.h>
6+
#include "Button2.h"
7+
8+
#define RIGHT_BUTTON_PIN 35
9+
#define LEFT_BUTTON_PIN 0
10+
11+
TFT_eSPI tft = TFT_eSPI();
12+
DigitalRainAnim digitalRainAnim = DigitalRainAnim();
13+
14+
Button2 rButton, lButton;
15+
16+
void setup()
17+
{
18+
tft.begin();
19+
tft.setRotation(0);
20+
tft.fillScreen(TFT_BLACK);
21+
digitalRainAnim.init(&tft, 3, 20, 3, 20, 60);
22+
23+
rButton.begin(RIGHT_BUTTON_PIN);
24+
rButton.setClickHandler(click);
25+
26+
lButton.begin(LEFT_BUTTON_PIN);
27+
lButton.setClickHandler(click);
28+
}
29+
30+
void loop()
31+
{
32+
digitalRainAnim.loop();
33+
rButton.loop();
34+
lButton.loop();
35+
}
36+
37+
void click(Button2& btn) {
38+
if (btn == rButton) {
39+
digitalRainAnim.pause();
40+
} else if (btn == lButton) {
41+
digitalRainAnim.resume();
42+
}
43+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <TFT_eSPI.h>
2+
#include <DigitalRainAnim.h>
3+
4+
TFT_eSPI tft = TFT_eSPI();
5+
DigitalRainAnim digitalRainAnim = DigitalRainAnim();
6+
7+
void setup()
8+
{
9+
tft.begin();
10+
tft.setRotation(0);
11+
tft.fillScreen(TFT_BLACK);
12+
13+
digitalRainAnim.init(&tft, true);
14+
}
15+
16+
void loop()
17+
{
18+
digitalRainAnim.loop();
19+
}

examples/DEMO_Generating_Random_Key/DEMO_Generating_Random_Key.ino renamed to examples/DEMO_Generating_Random_Key_FreeRTOS/DEMO_Generating_Random_Key_FreeRTOS.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
//ESP32 ONLY
12
#include <TFT_eSPI.h>
2-
#include <SPI.h>
33
#include <DigitalRainAnim.h>
4-
TFT_eSPI tft = TFT_eSPI();
54

5+
TFT_eSPI tft = TFT_eSPI();
66
DigitalRainAnim digitalRainAnim = DigitalRainAnim();
77

88
void setup()

examples/DEMO_Generating_Random_Key_Non_FreeRTOS/DEMO_Generating_Random_Key_Non_FreeRTOS.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#include <TFT_eSPI.h>
2-
#include <SPI.h>
32
#include <DigitalRainAnim.h>
4-
TFT_eSPI tft = TFT_eSPI();
53

4+
TFT_eSPI tft = TFT_eSPI();
65
DigitalRainAnim digitalRainAnim = DigitalRainAnim();
76

87
void setup()
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <TFT_eSPI.h>
2+
#include <DigitalRainAnim.h>
3+
4+
TFT_eSPI tft = TFT_eSPI();
5+
DigitalRainAnim digitalRainAnim = DigitalRainAnim();
6+
7+
void setup()
8+
{
9+
tft.begin();
10+
tft.setRotation(0);
11+
tft.fillScreen(TFT_BLACK);
12+
13+
digitalRainAnim.init(&tft, false, true);
14+
}
15+
16+
void loop()
17+
{
18+
digitalRainAnim.loop();
19+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include <TFT_eSPI.h>
2+
#include <DigitalRainAnim.h>
3+
4+
TFT_eSPI tft = TFT_eSPI();
5+
DigitalRainAnim digitalRainAnim = DigitalRainAnim();
6+
7+
void setup()
8+
{
9+
tft.begin();
10+
tft.setRotation(0);
11+
tft.fillScreen(TFT_BLACK);
12+
13+
digitalRainAnim.init(&tft);
14+
digitalRainAnim.setTextColor(0, 0, 255);
15+
digitalRainAnim.setBGColor(255, 255, 255);
16+
digitalRainAnim.setHeadCharColor(255, 0, 0);
17+
}
18+
19+
void loop()
20+
{
21+
digitalRainAnim.loop();
22+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <TFT_eSPI.h>
2+
#include <DigitalRainAnim.h>
3+
4+
TFT_eSPI tft = TFT_eSPI();
5+
DigitalRainAnim digitalRainAnim = DigitalRainAnim();
6+
7+
void setup()
8+
{
9+
tft.begin();
10+
tft.setRotation(0);
11+
tft.fillScreen(TFT_BLACK);
12+
13+
digitalRainAnim.init(&tft, 10, 30, 5, 25, 60);
14+
}
15+
16+
void loop()
17+
{
18+
digitalRainAnim.loop();
19+
}

examples/DEMO_with_Button2/DEMO_with_Button2.ino

Lines changed: 0 additions & 38 deletions
This file was deleted.

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "Digital Rain Animation for TFT_eSPI",
2+
"name": "Digital Rain Animation for TFT_eSPI using ESP32, ESP8266",
33
"keywords": "TFT_eSPI, Animation, Matrix, Digital, Rain",
44
"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.",
55
"repository":
66
{
77
"type": "git",
88
"url": "https://github.com/0015/TP_Arduino_DigitalRain_Anim.git"
99
},
10-
"version": "1.1.1",
10+
"version": "1.2.0",
1111
"frameworks": "arduino",
1212
"platforms": "*"
1313
}

0 commit comments

Comments
 (0)