Raspberry Pi RP2040 Support? #537
-
I'm trying to use NeoPixelBus on a Raspberry Pi Pico with a WS2811 light string. I'm using PlatformIO as my development environment, and the information for the NeoPixelBus library lists "Raspberry Pi RP2040" as a compatible platform, so I thought this combo might work. I have the Raspberry Pi RP2040 version 1.5.0 platform installed. However, when I try to compile any project with this library added I get a storm of compile errors, only a small representative sample is listed here because it mostly seems to be repeats of these same errors. It may well be that I'm just trying to do something that is not supposed to work, but I wonder, is there something I'm likely doing wrong here and I can work around this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Do you have a link as to where it states this library supports Raspberry Pi? Those errors are from missing compiler symbols. Your board/build environment isn't including all the standard Arduino symbols like F_CPU. They are usually supplied as command line parameters during the build (all this is hidden in Arduino world). The specific Arduino RP2040 board support using the Arduino IDE is not supported. Currently |
Beta Was this translation helpful? Give feedback.
Do you have a link as to where it states this library supports Raspberry Pi?
Those errors are from missing compiler symbols. Your board/build environment isn't including all the standard Arduino symbols like F_CPU. They are usually supplied as command line parameters during the build (all this is hidden in Arduino world).
The specific Arduino RP2040 board support using the Arduino IDE is not supported. Currently
ARDUINO_ARCH_RP2040
andARDUINO_ARCH_MBED_NANO
is what this board uses, which are not directly supported, so it falls into the generic ARM support in my library, in which this board fails to define all the normal ARM Arduino symbols. Talk to the Arduino guys about this.