BugFix in ESP32 mode
This commit is contained in:
parent
6800956d92
commit
13d2b01e5c
@ -63,11 +63,11 @@ void wsLED::show()
|
||||
mask >>= 1;
|
||||
}
|
||||
ESP_ERROR_CHECK(rmt_write_items(LED_RMT_TX_CHANNEL, led_data_buffer, LED_BUFFER_ITEMS, false));
|
||||
_endtime = micros() + 100; // TODO: unfortunately this time is not valid for ESP32 using RMT peripheral
|
||||
mEndTime = micros() + 100; // TODO: unfortunately this time is not valid for ESP32 using RMT peripheral
|
||||
#else
|
||||
noInterrupts();
|
||||
#if defined(WSLED_PL9823)
|
||||
espShow(_pin, color, 1 * 3, false);
|
||||
espShow(mPin, color, 1 * 3, false);
|
||||
#else
|
||||
espShow(mPin, color, 1 * 3, true);
|
||||
#endif
|
||||
@ -106,7 +106,7 @@ void wsLED::begin()
|
||||
|
||||
config.rmt_mode = RMT_MODE_TX;
|
||||
config.channel = LED_RMT_TX_CHANNEL;
|
||||
config.gpio_num = (gpio_num_t) _pin;
|
||||
config.gpio_num = (gpio_num_t) mPin;
|
||||
config.mem_block_num = 3;
|
||||
config.tx_config.loop_en = false;
|
||||
config.tx_config.carrier_en = false;
|
||||
|
Loading…
Reference in New Issue
Block a user