organism #3
26
organism/src/constants.h
Normal file
26
organism/src/constants.h
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#define R1 42
|
||||||
|
#define G1 40
|
||||||
|
#define BL1 41
|
||||||
|
#define R2 38
|
||||||
|
#define G2 37
|
||||||
|
#define BL2 39
|
||||||
|
#define CH_A 45
|
||||||
|
#define CH_B 36
|
||||||
|
#define CH_C 48
|
||||||
|
#define CH_D 35
|
||||||
|
#define CH_E 21
|
||||||
|
#define CLK 2
|
||||||
|
#define LAT 47
|
||||||
|
#define OE 14
|
||||||
|
|
||||||
|
#define PIN_E 21
|
||||||
|
#define PANEL_WIDTH 64
|
||||||
|
#define PANEL_HEIGHT 32 // Panel height of 64 will required PIN_E to be defined.
|
||||||
|
|
||||||
|
#define PANELS_NUMBER 1
|
||||||
|
|
||||||
|
#define PANE_WIDTH PANEL_WIDTH * PANELS_NUMBER
|
||||||
|
#define PANE_HEIGHT PANEL_HEIGHT
|
||||||
|
#define NUM_LEDS PANE_WIDTH*PANE_HEIGHT
|
||||||
|
|
||||||
|
#define ONBOARD_LED 13
|
@ -3,36 +3,11 @@
|
|||||||
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
|
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
#include "constants.h"
|
||||||
#include "overlay.h"
|
#include "overlay.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#define R1 42
|
|
||||||
#define G1 40
|
|
||||||
#define BL1 41
|
|
||||||
#define R2 38
|
|
||||||
#define G2 37
|
|
||||||
#define BL2 39
|
|
||||||
#define CH_A 45
|
|
||||||
#define CH_B 36
|
|
||||||
#define CH_C 48
|
|
||||||
#define CH_D 35
|
|
||||||
#define CH_E 21
|
|
||||||
#define CLK 2
|
|
||||||
#define LAT 47
|
|
||||||
#define OE 14
|
|
||||||
|
|
||||||
#define PIN_E 21
|
|
||||||
#define PANEL_WIDTH 64
|
|
||||||
#define PANEL_HEIGHT 32 // Panel height of 64 will required PIN_E to be defined.
|
|
||||||
|
|
||||||
#define PANELS_NUMBER 1
|
|
||||||
|
|
||||||
#define PANE_WIDTH PANEL_WIDTH * PANELS_NUMBER
|
|
||||||
#define PANE_HEIGHT PANEL_HEIGHT
|
|
||||||
#define NUM_LEDS PANE_WIDTH*PANE_HEIGHT
|
|
||||||
|
|
||||||
#define ONBOARD_LED 13
|
|
||||||
|
|
||||||
MatrixPanel_I2S_DMA *matrix = nullptr;
|
MatrixPanel_I2S_DMA *matrix = nullptr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user