-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric
committed
Dec 6, 2022
1 parent
70a8ce5
commit d6deaa4
Showing
27 changed files
with
11,549 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
examples/DEMO_Anim_Control_with_Button2/DEMO_Anim_Control_with_Button2.ino
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
examples/DEMO_Generating_Random_Key_FreeRTOS/DEMO_Generating_Random_Key_FreeRTOS.ino
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
examples/DEMO_Generating_Random_Key_Non_FreeRTOS/DEMO_Generating_Random_Key_Non_FreeRTOS.ino
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
examples/DEMO_Set_Alphabet_Only/DEMO_Set_Alphabet_Only.ino
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include <Arduino_GFX_Library.h> | ||
#include <DigitalRainAnimation.hpp> | ||
|
||
#define TFT_BL 45 | ||
Arduino_ESP32RGBPanel *bus = new Arduino_ESP32RGBPanel( | ||
GFX_NOT_DEFINED /* CS */, GFX_NOT_DEFINED /* SCK */, GFX_NOT_DEFINED /* SDA */, | ||
40 /* DE */, 48 /* VSYNC */, 47 /* HSYNC */, 14 /* PCLK */, | ||
4 /* R0 */, 5 /* R1 */, 6 /* R2 */, 7 /* R3 */, 15 /* R4 */, | ||
16 /* G0 */, 17 /* G1 */, 18 /* G2 */, 8 /* G3 */, 3 /* G4 */, 46 /* G5 */, | ||
9 /* B0 */, 10 /* B1 */, 11 /* B2 */, 12 /* B3 */, 13 /* B4 */ | ||
); | ||
Arduino_RPi_DPI_RGBPanel *gfx = new Arduino_RPi_DPI_RGBPanel( | ||
bus, | ||
480 /* width */, 0 /* hsync_polarity */, 8 /* hsync_front_porch */, 4 /* hsync_pulse_width */, 43 /* hsync_back_porch */, | ||
272 /* height */, 0 /* vsync_polarity */, 8 /* vsync_front_porch */, 4 /* vsync_pulse_width */, 12 /* vsync_back_porch */, | ||
1 /* pclk_active_neg */, 9000000 /* prefer_speed */, true /* auto_flush */); | ||
|
||
DigitalRainAnimation<Arduino_GFX> matrix_effect = DigitalRainAnimation<Arduino_GFX>(); | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
Serial.println("\n\n Arduino_GFX Test!"); | ||
|
||
#ifdef TFT_BL | ||
pinMode(TFT_BL, OUTPUT); | ||
digitalWrite(TFT_BL, HIGH); | ||
#endif | ||
|
||
gfx->begin(); | ||
matrix_effect.init(gfx); | ||
} | ||
|
||
void loop() { | ||
matrix_effect.loop(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#define LGFX_AUTODETECT | ||
#define LGFX_USE_V1 | ||
#include <LovyanGFX.hpp> | ||
#include <LGFX_AUTODETECT.hpp> | ||
#include <DigitalRainAnimation.hpp> | ||
|
||
static LGFX tft; | ||
DigitalRainAnimation<LGFX> matrix_effect = DigitalRainAnimation<LGFX>(); | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
Serial.println("\n\n LovyanGFX Basic"); | ||
|
||
tft.begin(); | ||
tft.setRotation(0); | ||
tft.setBrightness(255); | ||
matrix_effect.init(&tft); | ||
} | ||
|
||
void loop() { | ||
matrix_effect.loop(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <TFT_eSPI.h> | ||
#include <DigitalRainAnimation.hpp> | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnimation<TFT_eSPI> matrix_effect = DigitalRainAnimation<TFT_eSPI>(); | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
Serial.println("\n\n TFT_eSPI Basic"); | ||
|
||
tft.begin(); | ||
tft.setRotation(0); | ||
matrix_effect.init(&tft); | ||
} | ||
|
||
void loop() { | ||
matrix_effect.loop(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <TFT_eSPI.h> | ||
#include <DigitalRainAnimation.hpp> | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnimation<TFT_eSPI> matrix_effect = DigitalRainAnimation<TFT_eSPI>(); | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
Serial.println("\n\n TFT_eSPI Color Settings"); | ||
|
||
tft.begin(); | ||
tft.setRotation(0); | ||
|
||
matrix_effect.init(&tft); | ||
matrix_effect.setTextColor(0, 0, 255); | ||
matrix_effect.setHeadCharColor(0, 255, 255); | ||
} | ||
|
||
void loop() { | ||
matrix_effect.loop(); | ||
} |
21 changes: 21 additions & 0 deletions
21
examples/Demo_TFT_eSPI_Japanese/Demo_TFT_eSPI_Japanese.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <TFT_eSPI.h> | ||
#include <DigitalRainAnimation.hpp> | ||
#include "MatrixCodeNFI18.h" | ||
|
||
TFT_eSPI tft = TFT_eSPI(); | ||
DigitalRainAnimation<TFT_eSPI> matrix_effect = DigitalRainAnimation<TFT_eSPI>(); | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
Serial.println("\n\n TFT_eSPI with Japanese Font"); | ||
|
||
tft.begin(); | ||
tft.setRotation(0); | ||
tft.loadFont(MatrixCodeNFI18); | ||
|
||
matrix_effect.init(&tft); | ||
} | ||
|
||
void loop() { | ||
matrix_effect.loop(); | ||
} |
Oops, something went wrong.