kopia lustrzana https://github.com/Aircoookie/WLED
missing word in comment
rodzic
9380b2b4e8
commit
4f28bf7ab4
|
@ -41,7 +41,7 @@ static int currentChannel = 0;
|
||||||
// Some new MCUs (-S2, -C3) don't have HardwareSerial(2)
|
// Some new MCUs (-S2, -C3) don't have HardwareSerial(2)
|
||||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0)
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0)
|
||||||
#if SOC_UART_NUM < 3
|
#if SOC_UART_NUM < 3
|
||||||
#error DMX output is not possible on your MCU, as it not have HardwareSerial(2)
|
#error DMX output is not possible on your MCU, as it doesn't have HardwareSerial(2)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -26,10 +26,10 @@ Distributed as-is; no warranty is given.
|
||||||
class SparkFunDMX {
|
class SparkFunDMX {
|
||||||
public:
|
public:
|
||||||
void initWrite(int maxChan);
|
void initWrite(int maxChan);
|
||||||
#if !defined(DMX_SEND_ONLY)
|
#if !defined(DMX_SEND_ONLY)
|
||||||
void initRead(int maxChan);
|
void initRead(int maxChan);
|
||||||
uint8_t read(int Channel);
|
uint8_t read(int Channel);
|
||||||
#endif
|
#endif
|
||||||
void write(int channel, uint8_t value);
|
void write(int channel, uint8_t value);
|
||||||
void update();
|
void update();
|
||||||
private:
|
private:
|
||||||
|
|
Ładowanie…
Reference in New Issue