XIAO RP2350 has RGB LED but "IS_RGBW true" in code

Hi there,

Well I got WHite SO Bright you need to wear SHADES… :sunglasses:

Try this does it run ?

#include <Adafruit_NeoPixel.h>

#define LED_PIN   12     // GPIO12 (D12) controls the onboard WS2812
#define NUM_LEDS  1

Adafruit_NeoPixel led(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  led.begin();          // Initialize the LED strip
  led.show();           // Turn off all LEDs initially
}

void loop() {
  // Red
  led.setPixelColor(0, led.Color(255, 0, 0));
  led.show();
  delay(1000);

  // Green
  led.setPixelColor(0, led.Color(0, 255, 0));
  led.show();
  delay(1000);

  // Blue
  led.setPixelColor(0, led.Color(0, 0, 255));
  led.show();
  delay(1000);

  // White
  led.setPixelColor(0, led.Color(255, 255, 255));
  led.show();
  delay(1000);
}

LMK

GL :slight_smile: PJ :v:

note: and yes, the onboard WS2812B LED is still controlled via GPIO 12, just like on the standard RP2040 version. the Seeed XIAO RP2040 has a built-in WS2812B RGB LED (usually on pin D12 / GPIO 12), and you can control it using the Adafruit_NeoPixel library.

Chart on WiKi:
2340 1 user LED(3 colors), 1 power LED, 1 RGB LED
2350 1 user LED, 1 charge LED(Battery Charging Indicator),1 RGB LED
:+1: