// Testing the Raspberry Pi Pico with a Neopixel with Arduino code.
//
// Test1 Adafruit library: https://wokwi.com/projects/475529538465898497
// Test2 FastLED library : https://wokwi.com/projects/475529547499382785 (this one)
#include <FastLED.h>
#define NUM_LEDS 1
#define PIN_DATA 13
CRGB leds[NUM_LEDS];
void setup()
{
Serial1.begin(115200);
Serial1.println("Test with FastLED");
FastLED.addLeds<NEOPIXEL, PIN_DATA>(leds, NUM_LEDS); // GRB ordering is assumed
Serial1.println("✓ Blink setup complete - starting blink loop\n");
}
void loop()
{
for (int i = 0; i < NUM_LEDS; ++i)
{
leds[i] = CRGB::Red;
}
FastLED.show();
delay(500);
for (int i = 0; i < NUM_LEDS; ++i)
{
leds[i] = CRGB::Black;
}
FastLED.show();
delay(100);
}