0

Using on Board NeoPixel with Arduino IDE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Using on Board NeoPixel with Arduino IDE

by GDUDLEY on Sat May 28, 2022 12:11 am

On the feather RP2040 can anyone provide an example script of how to use the on borad neopixel in Arduino IDE. I've had no issues in the other code, but I can't get it going in arduino.

Thanks for any help.

GDUDLEY
 
Posts: 4
Joined: Sat May 28, 2022 12:06 am

Re: Using on Board NeoPixel with Arduino IDE

by Franklin97355 on Sat May 28, 2022 1:37 am

What are you using for the code? In the code, you should have a length of 1 and set the pixel 0 to what you want it to be.

Franklin97355
 
Posts: 22664
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Using on Board NeoPixel with Arduino IDE

by GDUDLEY on Sat May 28, 2022 10:33 am

Hey Franklin, Not sure what pins the onboard neopixel is tied to in order to put something together. The LED built in command just uses the small red LED. What I'm missing is how you address the on Neopixel. Probably there is a direct command to initiate like the LED_BUILTIN, but I'm not familiar enough to know it. Maybe A02 and A01

I can run the external ones on a breadboard with no issues.

GDUDLEY
 
Posts: 4
Joined: Sat May 28, 2022 12:06 am

Re: Using on Board NeoPixel with Arduino IDE

by Franklin97355 on Sat May 28, 2022 12:15 pm

According to this learn article the neopixel is on gpio 16

Franklin97355
 
Posts: 22664
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Using on Board NeoPixel with Arduino IDE

by GDUDLEY on Sat May 28, 2022 2:51 pm

AH! I looked a bunch of times at the pinout and was looking over where it is instead of to the side there. I feel silly for missing that one. Thank you sir!!

GDUDLEY
 
Posts: 4
Joined: Sat May 28, 2022 12:06 am

Please be positive and constructive with your questions and comments.