Skip to content

Commit d6deaa4

Browse files
author
Eric
committed
New Version 2.0.0
1 parent 70a8ce5 commit d6deaa4

File tree

27 files changed

+11549
-533
lines changed

27 files changed

+11549
-533
lines changed

License.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Eric Nam.
3+
Copyright (c) 2022 Eric Nam.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

examples/DEMO/DEMO.ino

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/DEMO_Anim_Control_with_Button2/DEMO_Anim_Control_with_Button2.ino

Lines changed: 0 additions & 43 deletions
This file was deleted.

examples/DEMO_Big_Text/DEMO_Big_Text.ino

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/DEMO_Generating_Random_Key_FreeRTOS/DEMO_Generating_Random_Key_FreeRTOS.ino

Lines changed: 0 additions & 54 deletions
This file was deleted.

examples/DEMO_Generating_Random_Key_Non_FreeRTOS/DEMO_Generating_Random_Key_Non_FreeRTOS.ino

Lines changed: 0 additions & 37 deletions
This file was deleted.

examples/DEMO_Set_Alphabet_Only/DEMO_Set_Alphabet_Only.ino

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/DEMO_Set_Colors/DEMO_Set_Colors.ino

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/DEMO_Set_Speed/DEMO_Set_Speed.ino

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#include <Arduino_GFX_Library.h>
2+
#include <DigitalRainAnimation.hpp>
3+
4+
#define TFT_BL 45
5+
Arduino_ESP32RGBPanel *bus = new Arduino_ESP32RGBPanel(
6+
GFX_NOT_DEFINED /* CS */, GFX_NOT_DEFINED /* SCK */, GFX_NOT_DEFINED /* SDA */,
7+
40 /* DE */, 48 /* VSYNC */, 47 /* HSYNC */, 14 /* PCLK */,
8+
4 /* R0 */, 5 /* R1 */, 6 /* R2 */, 7 /* R3 */, 15 /* R4 */,
9+
16 /* G0 */, 17 /* G1 */, 18 /* G2 */, 8 /* G3 */, 3 /* G4 */, 46 /* G5 */,
10+
9 /* B0 */, 10 /* B1 */, 11 /* B2 */, 12 /* B3 */, 13 /* B4 */
11+
);
12+
Arduino_RPi_DPI_RGBPanel *gfx = new Arduino_RPi_DPI_RGBPanel(
13+
bus,
14+
480 /* width */, 0 /* hsync_polarity */, 8 /* hsync_front_porch */, 4 /* hsync_pulse_width */, 43 /* hsync_back_porch */,
15+
272 /* height */, 0 /* vsync_polarity */, 8 /* vsync_front_porch */, 4 /* vsync_pulse_width */, 12 /* vsync_back_porch */,
16+
1 /* pclk_active_neg */, 9000000 /* prefer_speed */, true /* auto_flush */);
17+
18+
DigitalRainAnimation<Arduino_GFX> matrix_effect = DigitalRainAnimation<Arduino_GFX>();
19+
20+
void setup() {
21+
Serial.begin(115200);
22+
Serial.println("\n\n Arduino_GFX Test!");
23+
24+
#ifdef TFT_BL
25+
pinMode(TFT_BL, OUTPUT);
26+
digitalWrite(TFT_BL, HIGH);
27+
#endif
28+
29+
gfx->begin();
30+
matrix_effect.init(gfx);
31+
}
32+
33+
void loop() {
34+
matrix_effect.loop();
35+
}

0 commit comments

Comments
 (0)