Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Nov 8, 2021
1 parent 2b60967 commit cd01890
Show file tree
Hide file tree
Showing 14 changed files with 224 additions and 79 deletions.
2 changes: 1 addition & 1 deletion License.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Eric Nam.
Copyright (c) 2021 Eric Nam.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Digital Rain Animation for TFT_eSPI
# Digital Rain Animation for TFT_eSPI using ESP32, ESP8266

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. This works properly on all color displays supported by TFT_eSPI.

*Unfortunately, it cannot be used as a problem with C++ standard libraries on AVR boards.
This library is built on TFT_eSPI. Currently only works with ESP32 and ESP3266.

# Updates

- v1.2.0
- Added color change features. (BG color, Text Color, Header Char Color)

- v1.1.1
- Added the example, DEMO_Generating_Random_Key_Non_FreeRTOS

Expand Down
6 changes: 3 additions & 3 deletions examples/DEMO/DEMO.ino
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#include <TFT_eSPI.h>
#include <SPI.h>
#include <DigitalRainAnim.h>
TFT_eSPI tft = TFT_eSPI();

TFT_eSPI tft = TFT_eSPI();
DigitalRainAnim digitalRainAnim = DigitalRainAnim();

void setup()
{
tft.begin();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);

digitalRainAnim.init(&tft);
}

void loop()
{
digitalRainAnim.loop();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
//Button2 Library
//https://github.com/LennartHennigs/Button2

#include <TFT_eSPI.h>
#include <DigitalRainAnim.h>
#include "Button2.h"

#define RIGHT_BUTTON_PIN 35
#define LEFT_BUTTON_PIN 0

TFT_eSPI tft = TFT_eSPI();
DigitalRainAnim digitalRainAnim = DigitalRainAnim();

Button2 rButton, lButton;

void setup()
{
tft.begin();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);
digitalRainAnim.init(&tft, 3, 20, 3, 20, 60);

rButton.begin(RIGHT_BUTTON_PIN);
rButton.setClickHandler(click);

lButton.begin(LEFT_BUTTON_PIN);
lButton.setClickHandler(click);
}

void loop()
{
digitalRainAnim.loop();
rButton.loop();
lButton.loop();
}

void click(Button2& btn) {
if (btn == rButton) {
digitalRainAnim.pause();
} else if (btn == lButton) {
digitalRainAnim.resume();
}
}
19 changes: 19 additions & 0 deletions examples/DEMO_Big_Text/DEMO_Big_Text.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <TFT_eSPI.h>
#include <DigitalRainAnim.h>

TFT_eSPI tft = TFT_eSPI();
DigitalRainAnim digitalRainAnim = DigitalRainAnim();

void setup()
{
tft.begin();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);

digitalRainAnim.init(&tft, true);
}

void loop()
{
digitalRainAnim.loop();
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//ESP32 ONLY
#include <TFT_eSPI.h>
#include <SPI.h>
#include <DigitalRainAnim.h>
TFT_eSPI tft = TFT_eSPI();

TFT_eSPI tft = TFT_eSPI();
DigitalRainAnim digitalRainAnim = DigitalRainAnim();

void setup()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <TFT_eSPI.h>
#include <SPI.h>
#include <DigitalRainAnim.h>
TFT_eSPI tft = TFT_eSPI();

TFT_eSPI tft = TFT_eSPI();
DigitalRainAnim digitalRainAnim = DigitalRainAnim();

void setup()
Expand Down
19 changes: 19 additions & 0 deletions examples/DEMO_Set_Alphabet_Only/DEMO_Set_Alphabet_Only.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <TFT_eSPI.h>
#include <DigitalRainAnim.h>

TFT_eSPI tft = TFT_eSPI();
DigitalRainAnim digitalRainAnim = DigitalRainAnim();

void setup()
{
tft.begin();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);

digitalRainAnim.init(&tft, false, true);
}

void loop()
{
digitalRainAnim.loop();
}
22 changes: 22 additions & 0 deletions examples/DEMO_Set_Colors/DEMO_Set_Colors.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <TFT_eSPI.h>
#include <DigitalRainAnim.h>

TFT_eSPI tft = TFT_eSPI();
DigitalRainAnim digitalRainAnim = DigitalRainAnim();

void setup()
{
tft.begin();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);

digitalRainAnim.init(&tft);
digitalRainAnim.setTextColor(0, 0, 255);
digitalRainAnim.setBGColor(255, 255, 255);
digitalRainAnim.setHeadCharColor(255, 0, 0);
}

void loop()
{
digitalRainAnim.loop();
}
19 changes: 19 additions & 0 deletions examples/DEMO_Set_Speed/DEMO_Set_Speed.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <TFT_eSPI.h>
#include <DigitalRainAnim.h>

TFT_eSPI tft = TFT_eSPI();
DigitalRainAnim digitalRainAnim = DigitalRainAnim();

void setup()
{
tft.begin();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);

digitalRainAnim.init(&tft, 10, 30, 5, 25, 60);
}

void loop()
{
digitalRainAnim.loop();
}
38 changes: 0 additions & 38 deletions examples/DEMO_with_Button2/DEMO_with_Button2.ino

This file was deleted.

4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "Digital Rain Animation for TFT_eSPI",
"name": "Digital Rain Animation for TFT_eSPI using ESP32, ESP8266",
"keywords": "TFT_eSPI, Animation, Matrix, Digital, Rain",
"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.",
"repository":
{
"type": "git",
"url": "https://github.com/0015/TP_Arduino_DigitalRain_Anim.git"
},
"version": "1.1.1",
"version": "1.2.0",
"frameworks": "arduino",
"platforms": "*"
}
Loading

0 comments on commit cd01890

Please sign in to comment.