mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-19 10:32:56 +00:00
fixed ESPDMX
This commit is contained in:
parent
d9485b4537
commit
04b605b7d4
2 changed files with 3 additions and 2 deletions
|
@ -19,12 +19,13 @@
|
|||
// uint8_t dmxDataStores[MAX_IDS][DMXCHANNELS + 1];
|
||||
|
||||
// Set up the DMX-Protocol
|
||||
void DMXESPSerial::init(int pinSend, int pinRecv)
|
||||
void DMXESPSerial::init(int pinSend = 19, int pinRecv = -1)
|
||||
{
|
||||
sendPin = pinSend;
|
||||
recvPin = pinRecv;
|
||||
SERIALPORT.begin(DMXSPEED, DMXFORMAT, recvPin, sendPin);
|
||||
pinMode(sendPin, OUTPUT);
|
||||
dmxStarted = true;
|
||||
}
|
||||
|
||||
// Function to read DMX data
|
||||
|
|
|
@ -27,7 +27,7 @@ class DMXESPSerial
|
|||
public:
|
||||
int sendPin;
|
||||
int recvPin;
|
||||
bool started;
|
||||
bool dmxStarted;
|
||||
uint8_t dmxDataStore[DMXCHANNELS + 1];
|
||||
|
||||
void init(int pinSend, int pinRecv);
|
||||
|
|
Loading…
Add table
Reference in a new issue