diff --git a/src/main.cpp b/src/main.cpp index eedfcad..8f795cc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,7 @@ #include "MyBLEServer.hpp" #include "config.hpp" #include "datatypes.hpp" +#include "soc/rmt_struct.h" #include "tlc.hpp" #include @@ -129,6 +130,10 @@ void setup() { config.tx_config.idle_level = RMT_IDLE_LEVEL_HIGH; ESP_ERROR_CHECK(rmt_config(&config)); ESP_ERROR_CHECK(rmt_driver_install(config.channel, 0, 0)); + // pull RMT low -> 1 inverted + rmt_item32_t zero[1] = {1}; + ESP_ERROR_CHECK(rmt_write_items(RMT_CHANNEL_0, zero, + sizeof(zero) / sizeof(rmt_item32_t), true)); if (mode == MODE_BLE) {