Skip to content

Support for the RP2040 (Pi Pico) with ArduinoCore #1221

Closed

Description

@joachimhs

Hello,

Will this library support the Pi Pico (ArduinoCore for the RP2040 have landed a few days ago in the MBED repo - https://github.com/arduino/ArduinoCore-mbed).

Activity

  1. DarrenlloydGent commented on Apr 18, 2021

    @DarrenlloydGent

    +1

    Got myself excited with the Arduino IDE support for RP2040 so dove in and did a test for FastLED

    #error "This platform isn't recognized by FastLED... yet. See comments in FastLED/led_sysdefs.h for options."

    Too early I know but with the very low cost, number of pins and speed of the Pico, I'm really hoping to use the Arduino IDE with Picos and FastLED is underpinning a lot of what I'm tinkering with.

    I did get a 331 strip of WS2812b working on the Pico with Python, but I don't like Python, not too keen on using a Pi 4 or Thonny, but if it helps with a solution.

    https://core-electronics.com.au/tutorials/how-to-use-ws2812b-rgb-leds-with-raspberry-pi-pico.html

  2. evenstephen85 commented on Apr 21, 2021

    @evenstephen85

    My assumption is that the team will be working hard to optimize fastLED for the use of the PIO, but I was curious if we'll be able to get just a quick port to get us up and running? I'm not a coder, or smart enough to do something like this myself :-(

    We love what you do!

  3. ageppert commented on Jul 19, 2021

    @ageppert

    A work around in the short-term is to use the Adafruit NeoPixel library which has been updated to support the rp2040 and pico with a PIO implementation: https://github.com/Bodmer/Adafruit_NeoPixel

  4. nmaas87 commented on May 10, 2022

    @nmaas87
  5. robertlipe commented on Feb 9, 2025

    @robertlipe
    Contributor

    With #1261 merged, is there any reason to not close this? Seems like people are reporting it works well and has for some time.

  6. added
    type: feature
    platform: rp2040
    area: core
    status: stale
    status: triage
    on Apr 16, 2026
  7. zackees commented on Jun 3, 2026

    @zackees
    Member

    Tracked in FastLED/fbuild#387 for RP2040 / Pico fbuild platform/build support validation.

    That fbuild issue is scoped to board metadata, toolchain/backend support, and FastLED smoke-build evidence. Any remaining FastLED source/platform-code blocker should stay linked from both sides.

  8. zackees commented on Jun 3, 2026

    @zackees
    Member

    fbuild RP2040 build support: confirmed working

    Tracking against FastLED/fbuild#387. fbuild ships a dedicated RP2040 platform orchestrator (crates/fbuild-build/src/rp2040/) with four green CI workflows on main:

    Env Board Core / framework CI workflow
    rp2040 rpipico Earle Philhower ArduinoCore-RP2040 (via maxgerhardt/platform-raspberrypi) build-rp2040.yml ✅
    rp2350 rpipico2 Earle Philhower ArduinoCore-RP2040 build-rp2350.yml ✅
    rpipico rpipico PlatformIO raspberrypi (Arduino-mbed) build-rpipico.yml ✅
    rpipico2 rpipico2 PlatformIO raspberrypi (Arduino-mbed) build-rpipico2.yml ✅

    Both ArduinoCore paths the original request covers (Earle Philhower's and Arduino-mbed) build through fbuild end-to-end. Latest green runs on main at 2026-06-03 21:51 UTC.

    If FastLED on the RP2040 path is failing for you with fbuild, please open a new fbuild issue with the failing env + sketch and we'll investigate. Closing the fbuild tracker #387 as resolved.

  9. zackees commented on Jul 16, 2026

    @zackees
    Member

    RP2040 / Pico status update (July 2026)

    FastLED's RP2040 support is now mostly implemented and actively being validated against a physical Raspberry Pi Pico-class board.

    What is currently in place:

    • RP2040 platform builds through the supported ArduinoCore-RP2040/fbuild path.
    • Stock ROM BOOTSEL deployment works through fbuild's managed UF2 flow (no direct flasher): the board presents RPI-RP2, accepts NEW.UF2, exits BOOTSEL, and returns to the application USB identity.
    • FastLED has RP2040-specific resource, PIO, hardware-SPI, and UART engine unit coverage; the focused host suite is green.
    • The live board used for current validation is Raspberry Pi Pico SDK CDC UART (RP2040), USB 2E8A:000A, serial 5303284720C4641C; its normal application endpoint is COM12 on this Windows host.

    Latest live result: a no-port BOOTSEL flash completed successfully and fbuild correctly correlated the application CDC endpoint back to COM12 after the flash. The remaining failure is host-side Windows device state: PnP reports that exact endpoint as CM_PROB_PHANTOM, so the serial driver cannot open it for the post-flash RPC smoke test. This is neither a failed UF2 transfer nor evidence that the RP2040 firmware watchdog is wedged. A small fbuild recovery fix is being prepared to preserve the unique known CDC identity across manual BOOTSEL flashes; it has focused unit coverage and still needs a clean live RPC run before being merged.

    We would appreciate feedback from current RP2040/Pico users:

    1. Which board and Arduino core are you using (Earle Philhower Arduino-Pico, Arduino mbed, or another core)?
    2. Which LED chipset and transport are you using (clockless/PIO, hardware SPI, or another path)?
    3. Does the board expose a stable USB CDC serial endpoint after a BOOTSEL UF2 flash on your OS?
    4. For TinyUSB users, do you still see PIO/resource conflicts with the current FastLED code, and can you share a minimal repro?

    Please include board model, OS, FastLED version/commit, core version, and a minimal sketch when possible. That will help us turn the current broad RP2040 support into well-documented, hardware-proven support across real devices.

  10. removed
    status: stale
    on Sep 2, 2026
  11. zackees commented on Sep 6, 2026

    @zackees
    Member

    Closing — RP2040 support shipped and is covered by CI and the bench.

    The original ask was ArduinoCore-mbed. Both Pico cores are detected today, in src/platforms/arm/rp/is_rp2040.h:15:

    #if defined(ARDUINO_ARCH_RP2040) || defined(TARGET_RP2040) || \
        defined(PICO_32BIT) || defined(ARDUINO_RASPBERRY_PI_PICO)
    #define FL_IS_RP2040
    #endif

    TARGET_RP2040 / ARDUINO_RASPBERRY_PI_PICO are the ArduinoCore-mbed macros; ARDUINO_ARCH_RP2040 is Earle Philhower's arduino-pico, which is the core FastLED builds against in CI.

    Current state:

    • Support landed in Add RP2040 platform (Arduino IDE) #1261 (as @nmaas87 noted), and has since grown well past the original request.
    • Drivers: src/platforms/arm/rp/ carries PIO clockless output (including parallel multi-lane), hardware SPI, and UART paths, shared across RP2040 and RP2350 via rpcommon/. PIO resources are acquired through the SDK claims system so FastLED coexists with other libraries that also use PIO.
    • CI environments: rp2040, rp2350, rp2350w.
    • Build proof (this week, local bench):
      • bash compile rp2040 --examples Blink → flash 309.11 KB / 2.00 MB, RAM 57.04 KB / 256.00 KB
      • bash compile rp2350 --examples Blink → flash 563.20 KB / 2.00 MB, RAM 56.70 KB / 512.00 KB
    • Deployment goes through fbuild's managed ROM BOOTSEL/UF2 flow.

    @robertlipe — yes, your 2025 question was right; this just never got closed.

    Remaining RP work is tracked in its own scoped issues (RP2350(W) HIL in #3899, peer/network bring-up in #3832), so nothing is lost by closing this one. Please reopen if the mbed core specifically misbehaves for you.

  12. moved this from Triage to Done in FastLED Trackeron Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreplatform: rp2040status: triagetype: feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions