aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-12-22 19:29:52 +0000
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-12-22 19:29:52 +0000
commit573d01b3d936220f66bf528e0a32ae438d1de4c1 (patch)
tree413a297e24ef36437141b82e1264af4ef1ef7c71 /examples
parent25b5f4c89dcef92744f77ad2e449598d3f66d14b (diff)
Get rid of this example
Diffstat (limited to 'examples')
-rw-r--r--examples/Glediator3_TPM2_MatrixPanel/Glediator3_TPM2_MatrixPanel.ino50
-rw-r--r--examples/Glediator3_TPM2_MatrixPanel/README.md10
2 files changed, 0 insertions, 60 deletions
diff --git a/examples/Glediator3_TPM2_MatrixPanel/Glediator3_TPM2_MatrixPanel.ino b/examples/Glediator3_TPM2_MatrixPanel/Glediator3_TPM2_MatrixPanel.ino
deleted file mode 100644
index ccc06f9..0000000
--- a/examples/Glediator3_TPM2_MatrixPanel/Glediator3_TPM2_MatrixPanel.ino
+++ /dev/null
@@ -1,50 +0,0 @@
-/* -------------------------- Class Initialisation -------------------------- */
-#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
-MatrixPanel_I2S_DMA matrix;
-
-#include "TPM2.h" // https://github.com/rstephan/TPM2
-
-#define NO_OF_LEDS MATRIX_WIDTH*MATRIX_HEIGHT
-bool led_off = true;
-uint8_t buffer[NO_OF_LEDS * 3];
-// uint8_t buffer[NO_OF_LEDS * 3]; tpm2 lite
-TPM2 tpm2Driver(&Serial, buffer, sizeof(buffer));
-
-
-void CallbackRx(uint8_t* data, uint16_t len)
-{
- uint16_t pixel;
-
- for (int y = 0; y < MATRIX_HEIGHT; y++)
- {
- for (int x = 0; x < MATRIX_WIDTH; x++)
- {
- pixel = (y * MATRIX_WIDTH) + x;
- pixel *= 3;
-
- matrix.drawPixelRGB888(x, y, data[pixel], data[pixel+1], data[pixel+2]);
-
- //matrix.drawPixelRGB565(x, y, (((uint16_t)data[pixel+1] << 8) | data[pixel])); // tpm2 light
-
- } // end x
- } // end row
-
-}
-
-
-
-void setup()
-{
- // Setup serial interface
- Serial.begin(1250000);
- delay(250);
-
- tpm2Driver.registerRxData(CallbackRx);
-
- matrix.begin(); // setup the LED matrix
-}
-
-void loop()
-{
- tpm2Driver.update();
-} \ No newline at end of file
diff --git a/examples/Glediator3_TPM2_MatrixPanel/README.md b/examples/Glediator3_TPM2_MatrixPanel/README.md
deleted file mode 100644
index 5113930..0000000
--- a/examples/Glediator3_TPM2_MatrixPanel/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Glediator3_TPM2_MatrixPanel
-An example of controlling an LED Matrix panel using desktop software via. the serial TPM2 protocol.
-
-This is very experimental and might not work. Please note the frame rate on a 64x32 panel will be low (about 12fps) due to the limitation of Serial port throughput!
-
-# How to use
-* Install the TPM2 library: https://github.com/rstephan/TPM2
-* Then get Glediator3 running on your computer, and connect to the LED Matrix device via. Serial Port.
-
-Refer to: https://github.com/mrfaptastic/Glediator3