This commit is contained in:
David Rice
2026-02-04 18:35:30 +00:00
parent fa05b85a63
commit f9d51cc1d8

View File

@@ -13,7 +13,7 @@ extern "C" {
#define LED_PIN 25
#define RS485_DE_RE_PIN 6
#define DMX_TX_PIN 4
#define FIFO_SIZE 64
#define FIFO_SIZE 512
#define DMX_UNIVERSE_SIZE 512
typedef struct {
@@ -72,6 +72,18 @@ void setup_hardware() {
dmx_buffer[0x02] = 0x00;
dmx_buffer[0x03] = 0x00;
dmx_buffer[0x04] = 0x00;
dmx_buffer[0x05] = 0x00;
dmx_buffer[0x06] = 0x00;
dmx_buffer[0x07] = 0x00;
dmx_buffer[0x08] = 0xFF;
dmx_buffer[0x09] = 0x00;
dmx_buffer[0x0A] = 0x00;
dmx_buffer[0x0B] = 0x00;
dmx_buffer[0x0C] = 0x00;
dmx_buffer[0x0D] = 0x00;
dmx_buffer[0x0E] = 0x00;
dmx_out.write(dmx_buffer, DMX_UNIVERSE_SIZE + 1);
}