Light the RGB LED on a v1.1 board
Arduino C++This sketch was written for a v1.0 board and lights nothing on yours. Blink the RGB LED green twice a second on the right pin, and print green and off on each change.
Checks
- Not run yetRuns for 3 s without an error
- Not run yetDrives GPIO38 with rgbLedWrite, not RGB_BUILTIN
- Not run yetPrints green at least three times in 3 s
- Not run yetPrints off at least three times in 3 s
Hints
- Arduino's generic ESP32-S3 Dev Module puts RGB_BUILTIN on GPIO48, the v1.0 pin. Look at the silkscreen next to the LED: RGB@IO38.
- Name the pin yourself: const uint8_t RGB_PIN = 38; then rgbLedWrite(RGB_PIN, 0, 64, 0).