IB RP2040 Arduino control of onboard NEOPIX
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- hromer555
- Posts: 2
- Joined: Wed Nov 24, 2021 8:03 pm
IB RP2040 Arduino control of onboard NEOPIX
While I can control the onboard Neopixel in CircuitPython, I can't identify the correct pin number/board name for the NeoPixel using the Arduino core. The Eagle schematic shows it connected to the chip pin 28/GPIO17 and named NEOPIX. None of these seem to work. Is it also necessary to drive NEO_PWR high to enable the led, and if so how is that pin addressed?
- infoberg
- Posts: 8
- Joined: Wed Dec 08, 2021 3:42 am
Re: IB RP2040 Arduino control of onboard NEOPIX
Yes, see the updated information at https://learn.adafruit.com/adafruit-its ... 40/pinouts
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: IB RP2040 Arduino control of onboard NEOPIX
Yep, here's a minimal example for reference:
Code: Select all
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel pixel(1, 17);
void setup() {
// enable power
pinMode(16, OUTPUT);
digitalWrite(16, HIGH);
// init and fill with color
pixel.begin();
pixel.fill(0xADAF00);
pixel.show();
}
void loop() {
}
- hromer555
- Posts: 2
- Joined: Wed Nov 24, 2021 8:03 pm
Re: IB RP2040 Arduino control of onboard NEOPIX
Thanks Carter,
That does it. I have control of the light and colors and everything seems to work.
That does it. I have control of the light and colors and everything seems to work.
Please be positive and constructive with your questions and comments.