ArduinoESP32-S3 DevKitC-1Lab virtual

ESP32-S3: RGB LED

The S3 DevKitC-1’s own RGB LED (GPIO48) through the colours with rgbLedWrite().

ESP32-S3: RGB LED in Argynix Lab

The code

sketch.inoC++
// ESP32-S3 DevKitC-1: its own RGB LED (GPIO48) through the colours with rgbLedWrite().

const uint8_t colours[][3] = {{255, 0, 0}, {255, 120, 0}, {0, 255, 0}, {0, 120, 255}, {160, 0, 255}};

void setup() {
  Serial.begin(115200);
  Serial.printf("%s at %lu MHz, %d cores\n", ESP.getChipModel(), getCpuFrequencyMhz(), ESP.getChipCores());
}

void loop() {
  for (auto &c : colours) {
    rgbLedWrite(RGB_BUILTIN, c[0], c[1], c[2]);
    delay(400);
  }
}