Skip to content

Commit

Permalink
New Version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Dec 6, 2022
1 parent 70a8ce5 commit d6deaa4
Show file tree
Hide file tree
Showing 27 changed files with 11,549 additions and 533 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) 2021 Eric Nam.
Copyright (c) 2022 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
19 changes: 0 additions & 19 deletions examples/DEMO/DEMO.ino

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions examples/DEMO_Big_Text/DEMO_Big_Text.ino

This file was deleted.

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions examples/DEMO_Set_Alphabet_Only/DEMO_Set_Alphabet_Only.ino

This file was deleted.

22 changes: 0 additions & 22 deletions examples/DEMO_Set_Colors/DEMO_Set_Colors.ino

This file was deleted.

19 changes: 0 additions & 19 deletions examples/DEMO_Set_Speed/DEMO_Set_Speed.ino

This file was deleted.

35 changes: 35 additions & 0 deletions examples/Demo_ArduinoGFX_Basic/Demo_ArduinoGFX_Basic.ino
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();
}
22 changes: 22 additions & 0 deletions examples/Demo_LovyanGFX_Basic/Demo_LovyanGFX_Basic.ino
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();
}
18 changes: 18 additions & 0 deletions examples/Demo_TFT_eSPI_Basic/Demo_TFT_eSPI_Basic.ino
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();
}
21 changes: 21 additions & 0 deletions examples/Demo_TFT_eSPI_Colors/Demo_TFT_eSPI_Colors.ino
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 examples/Demo_TFT_eSPI_Japanese/Demo_TFT_eSPI_Japanese.ino
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();
}
Loading

0 comments on commit d6deaa4

Please sign in to comment.