needs testing: init rmt
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
#include "MyBLEServer.hpp"
|
#include "MyBLEServer.hpp"
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
#include "datatypes.hpp"
|
#include "datatypes.hpp"
|
||||||
|
#include "soc/rmt_struct.h"
|
||||||
#include "tlc.hpp"
|
#include "tlc.hpp"
|
||||||
#include <driver/rmt.h>
|
#include <driver/rmt.h>
|
||||||
|
|
||||||
@@ -129,6 +130,10 @@ void setup() {
|
|||||||
config.tx_config.idle_level = RMT_IDLE_LEVEL_HIGH;
|
config.tx_config.idle_level = RMT_IDLE_LEVEL_HIGH;
|
||||||
ESP_ERROR_CHECK(rmt_config(&config));
|
ESP_ERROR_CHECK(rmt_config(&config));
|
||||||
ESP_ERROR_CHECK(rmt_driver_install(config.channel, 0, 0));
|
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) {
|
if (mode == MODE_BLE) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user