IB RP2040 Arduino control of onboard NEOPIX

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
hromer555
 
Posts: 2
Joined: Wed Nov 24, 2021 8:03 pm

IB RP2040 Arduino control of onboard NEOPIX

Post by hromer555 »

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?

User avatar
infoberg
 
Posts: 8
Joined: Wed Dec 08, 2021 3:42 am

Re: IB RP2040 Arduino control of onboard NEOPIX

Post by infoberg »

Yes, see the updated information at https://learn.adafruit.com/adafruit-its ... 40/pinouts

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: IB RP2040 Arduino control of onboard NEOPIX

Post by adafruit_support_carter »

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() {
}

User avatar
hromer555
 
Posts: 2
Joined: Wed Nov 24, 2021 8:03 pm

Re: IB RP2040 Arduino control of onboard NEOPIX

Post by hromer555 »

Thanks Carter,
That does it. I have control of the light and colors and everything seems to work.

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”