diff --git a/README.md b/README.md
index 4e11677..b8d6ada 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,13 @@
[![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)
-# Digital Rain Animation for TFT_eSPI using ESP32, ESP8266
+# Digital Rain Animation for TFT_eSPI, LovyanGFX, and Arduino_GFX(Adafruit GFX)
- A library that represents Digital Rain Animation on color displays that support TFT_eSPI
- Search for this library in the Arduino Library Manager and download it or clone it yourself from Github.
- This library is built on TFT_eSPI. Currently only works with ESP32 and ESP3266.
+ Great animation effects from the movie Matrix can be easily shown on your display.
+ Search for this library in the Arduino Library Manager and download it or clone it yourself from this GitHub repository.
+
+
+
+
@@ -15,6 +18,9 @@
# Updates
+ - v2.0.1
+ - Supports TFT_eSPI, LovyanGFX, and Arduino_GFX(Adafruit GFX)
+ - Example for Japanese
- v1.2.1
- Added color change features. (BG color, Text Color, Header Char Color)
diff --git a/library.properties b/library.properties
index ed98d01..f89d857 100755
--- a/library.properties
+++ b/library.properties
@@ -1,5 +1,5 @@
name=Digital Rain Animation
-version=2.0.0
+version=2.0.1
author=Eric Nam
maintainer=Eric Nam
sentence=Easily display Matrix effects in the Arduino environment.
diff --git a/misc/v2.0.jpg b/misc/v2.0.jpg
new file mode 100644
index 0000000..adc8815
Binary files /dev/null and b/misc/v2.0.jpg differ
diff --git a/src/DigitalRainAnimation.hpp b/src/DigitalRainAnimation.hpp
index ea7c996..36bf51d 100644
--- a/src/DigitalRainAnimation.hpp
+++ b/src/DigitalRainAnimation.hpp
@@ -1,5 +1,5 @@
/*
- MatrixAnim.hpp - Library for Digital Rain Animation(MATRIX EFFECT).
+ DigitalRainAnimation.hpp - Library for Digital Rain Animation(MATRIX EFFECT).
Created by Eric Nam, November 08, 2021.
Released into the public domain.
*/
@@ -62,7 +62,7 @@ class DigitalRainAnimation {
height = _gfx->height();
_gfx->fillRect(0, 0, width, height, bgColor);
_gfx->setTextColor(textColor, bgColor);
- numOfline = width / lineWidth;
+ numOfline = width / lineWidth + 1;
for (int i = 0; i < numOfline; i++) {
line_length.push_back(getRandomNum(line_len_min, line_len_max));
@@ -121,9 +121,9 @@ class DigitalRainAnimation {
}
}
- //a function that gets randomly from ASCII code 33 to 126.
+ //a function that gets randomly from ASCII codes 33 to 65 and 91 to 126. (For MatrixCodeNFI)
String getASCIIChar() {
- return String((char)(random(33, 127)));
+ return String((char)(random(0, 2) == 0 ? random(33, 65) : random(91, 126)));
}
//a function that gets only alphabets from ASCII code.