Skip to content

Commit

Permalink
Version Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Dec 18, 2022
1 parent d6deaa4 commit 9fa2c28
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

<a href="https://youtu.be/1qTgspF4SPc">
<img width="800" src="https://github.com/0015/TP_Arduino_DigitalRain_Anim/blob/main/misc/v2.0.jpg">
</a>

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

# 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)
Expand Down
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
version=2.0.0
version=2.0.1
author=Eric Nam <thatprojectstudio@gmail.com>
maintainer=Eric Nam <thatprojectstudio@gmail.com>
sentence=Easily display Matrix effects in the Arduino environment.
Expand Down
Binary file added misc/v2.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/DigitalRainAnimation.hpp
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 9fa2c28

Please sign in to comment.