This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm using a ESP32-C3-DevKitC-02 board, and can't get the addressable RGB LED to work, similar to this other post. It should be on GPIO8.
I'm using PlatformIO, and the Adruino framework. I'm pretty sure the board I have selected is wrong, the esp32-c3-devkitm-1, but I can't find the right one in the platformio boards section in VS Code.
platform = espressif32
board = esp32-c3-devkitm-1
framework = arduino
The code I'm using is adapted from the esp-idf blink example. It compiles, installs, runs, but the LED doesn't do anything.
Is there a board setup I can install for the ESP32-C3-DevKitC-02, or is there something I'm overlooking?
```
include <Arduino.h>
include <led_strip.h>
static uint8_t s_led_state = 0;
static void configure_led(void) { gpio_reset_pin(GPIO_NUM_8); /* Set the GPIO as a push/pull output */ gpio_set_direction(GPIO_NUM_8, GPIO_MODE_OUTPUT); }
void setup() { Serial.begin(115200); configure_led(); }
int counter=0; void loop() { Serial.printf("loop %d\n", counter); gpio_set_level(GPIO_NUM_8, s_led_state); s_led_state = !s_led_state; delay(500); } ```
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/esp32/comme...