Skip to content

Commit 9fa2c28

Browse files
author
Eric
committed
Version Bump
1 parent d6deaa4 commit 9fa2c28

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
[![arduino-library-badge](https://www.ardu-badge.com/badge/Digital%20Rain%20Animation%20for%20TFT_eSPI.svg?)](https://www.ardu-badge.com/Digital%20Rain%20Animation%20for%20TFT_eSPI)
22

3-
# Digital Rain Animation for TFT_eSPI using ESP32, ESP8266
3+
# Digital Rain Animation for TFT_eSPI, LovyanGFX, and Arduino_GFX(Adafruit GFX)
44

5-
A library that represents Digital Rain Animation on color displays that support TFT_eSPI
6-
Search for this library in the Arduino Library Manager and download it or clone it yourself from Github.
7-
This library is built on TFT_eSPI. Currently only works with ESP32 and ESP3266.
5+
Great animation effects from the movie Matrix can be easily shown on your display.
6+
Search for this library in the Arduino Library Manager and download it or clone it yourself from this GitHub repository.
7+
8+
<a href="https://youtu.be/1qTgspF4SPc">
9+
<img width="800" src="https://github.com/0015/TP_Arduino_DigitalRain_Anim/blob/main/misc/v2.0.jpg">
10+
</a>
811

912
<a href="https://youtu.be/i6gGK4L4Yv8">
1013
<img width="800" src="https://github.com/0015/TP_Arduino_DigitalRain_Anim/blob/main/misc/image.jpg">
@@ -15,6 +18,9 @@
1518
</a>
1619

1720
# Updates
21+
- v2.0.1
22+
- Supports TFT_eSPI, LovyanGFX, and Arduino_GFX(Adafruit GFX)
23+
- Example for Japanese
1824

1925
- v1.2.1
2026
- Added color change features. (BG color, Text Color, Header Char Color)

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
2-
version=2.0.0
2+
version=2.0.1
33
author=Eric Nam <[email protected]>
44
maintainer=Eric Nam <[email protected]>
55
sentence=Easily display Matrix effects in the Arduino environment.

misc/v2.0.jpg

66.1 KB
Loading

src/DigitalRainAnimation.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
MatrixAnim.hpp - Library for Digital Rain Animation(MATRIX EFFECT).
2+
DigitalRainAnimation.hpp - Library for Digital Rain Animation(MATRIX EFFECT).
33
Created by Eric Nam, November 08, 2021.
44
Released into the public domain.
55
*/
@@ -62,7 +62,7 @@ class DigitalRainAnimation {
6262
height = _gfx->height();
6363
_gfx->fillRect(0, 0, width, height, bgColor);
6464
_gfx->setTextColor(textColor, bgColor);
65-
numOfline = width / lineWidth;
65+
numOfline = width / lineWidth + 1;
6666

6767
for (int i = 0; i < numOfline; i++) {
6868
line_length.push_back(getRandomNum(line_len_min, line_len_max));
@@ -121,9 +121,9 @@ class DigitalRainAnimation {
121121
}
122122
}
123123

124-
//a function that gets randomly from ASCII code 33 to 126.
124+
//a function that gets randomly from ASCII codes 33 to 65 and 91 to 126. (For MatrixCodeNFI)
125125
String getASCIIChar() {
126-
return String((char)(random(33, 127)));
126+
return String((char)(random(0, 2) == 0 ? random(33, 65) : random(91, 126)));
127127
}
128128

129129
//a function that gets only alphabets from ASCII code.

0 commit comments

Comments
 (0)