As mentioned before, the ESP32-C6 requires at least Arduino 3.x!
So you have to use
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
When compiling, take a look at the PLATFORM output:
PLATFORM: Espressif 32 (53.3.12)
About your code: Is it just about blinking the onboard RGB LED or is it about driving a whole RGB stripe?
If it is just about one single RGB led you don’t need FastLED library for that.
Simply use the built-in function rgbLedWrite
or rgbLedWriteOrdered
platformio.ini
[env:esp32-c6-devkitm-1]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.12/platform-espressif32.zip
board = esp32-c6-devkitm-1
framework = arduino
main.cpp
#include <Arduino.h>
const int RGB_LED = 8;
void setup() {
}
void loop() {
rgbLedWrite(RGB_LED, 255,0,0);
delay(500);
rgbLedWrite(RGB_LED, 0,0,0);
delay(500);
}