Trying to use an SK8612 mini RGB LED using the nice lib from @Kolban. I have a custom board made so I'm stuck on GPIO_NUM_6 which I should be able to re-map being a GPIO output pin. Problem is that I keep on crashing and I'm not being able to use the gpio_matrix_out properly I think. I'm not grasping the concept here I think
Code: Select all
gpio_set_direction(GPIO_NUM_6, GPIO_MODE_OUTPUT);
gpio_matrix_out(GPIO_NUM_6, SIG_GPIO_OUT_IDX, 0, 0);
ESP_LOGD(TAG, "GPIO remapped"); #
WS2812 ws2812 = WS2812(GPIO_NUM_6, 1, RMT_CHANNEL_0); // crashes
Code: Select all
==================== CURRENT THREAD STACK =====================
#0 0x400f1fa3 in WS2812::WS2812 (this=0x3ffafc20, dinPin=<optimized out>, pixelCount=<optimized out>, channel=<optimized out>) at /Users/smeedy/code/esp/neopixel2/main/./WS2812.cpp:138
Code: Select all
ESP_ERROR_CHECK(rmt_config(&config));
ESP_ERROR_CHECK(rmt_driver_install(this->channel, 0, 0)); # this is L138
} // WS2812
Been chasing some hint from this forum, and I think it boils down to the re-mux of the matrix. See https://esp32.com/viewtopic.php?f=13&t=1371 for example. Still I'm doing this wrong I think.
Thanks,
Martijn