diff --git a/src/WSLed.cpp b/src/WSLed.cpp index a4f9801..e69dd20 100644 --- a/src/WSLed.cpp +++ b/src/WSLed.cpp @@ -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;