Hi,
I'm working on this Starry Night project: https://learn.adafruit.com/animated-sta ... nd-express
My students will use individual LED's (the ones with a long and short leg) instead of the LED strand. Using the instructions in the guide, the LEDs light up the whole time the power is on.
Does anyone know if there is a way to set it up so the individual LEDs light up using the touchpads? (The students know how to program touchpads to light up the individual neopixels on the CPX.)
Thanks,
Gail
CPX light up individual LEDs
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15667
- Joined: Tue Oct 20, 2015 3:22 pm
Re: CPX light up individual LEDs
How are your LEDs wired?
To control the individual LEDs you could use the "signal I/O" section of the Crickit if you have <= 8 LEDs. If you want more than * you probably want to use an I2C I/O expander. https://www.adafruit.com/product/4886 will give you control of 16 LEDs.You can connect up to 4 of them for control of up to 64 LEDs. The I/O expander is generally a better idea as it has LED drivers so you won't have to worry about overloading the signal i/o of the Crickit.
Dave
To control the individual LEDs you could use the "signal I/O" section of the Crickit if you have <= 8 LEDs. If you want more than * you probably want to use an I2C I/O expander. https://www.adafruit.com/product/4886 will give you control of 16 LEDs.You can connect up to 4 of them for control of up to 64 LEDs. The I/O expander is generally a better idea as it has LED drivers so you won't have to worry about overloading the signal i/o of the Crickit.
Dave
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: CPX light up individual LEDs
How are you connecting the CPX and the LEDs? And, what code are you running? It will help troubleshoot your problem.
- gschwiersch
- Posts: 8
- Joined: Thu May 26, 2022 8:09 am
Re: CPX light up individual LEDs
Thanks! I got it working. I made 2 really silly mistakes.
1. I had the LED connected to the CPX when the instruction specified connecting it to the CRICKIT drive.
2. I only had code to run the motor and not the suggested lights code.
I fixed both mistakes and it's all working perfectly now.
Thanks again for your helpful suggestions/questions.
Gail
1. I had the LED connected to the CPX when the instruction specified connecting it to the CRICKIT drive.
2. I only had code to run the motor and not the suggested lights code.
I fixed both mistakes and it's all working perfectly now.
Thanks again for your helpful suggestions/questions.
Gail
Please be positive and constructive with your questions and comments.