From 427b8daf2a440b382d23ff0d7e0eac6b9d0ea4e5 Mon Sep 17 00:00:00 2001 From: JPaehr Date: Mon, 22 Dec 2025 18:59:19 +0100 Subject: [PATCH] needs testing: init rmt --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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) {