Hey guys, I have some neopixels wired up to a circuit playground express and I would like to program a 'chasing led' effect where individual leds light up in sequence in a particular colour to give the effect of a single LED running through the length of the strip.
Is there an easy way to do this in makecode? And can I have this animation running within/at the same time as a different effect, for example a single blue LED chasing through while the other LEDS on the strip pulse slowly in a white light?
If anyone can give me some advice I would really appreciate it, I am pretty new to the maker world and programming...
Here is my current project: [attachment=0]MakeCode pulse.PNG[/attachment
Thanks in advance! =)
Will
Neopixels - chasing led effect
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- not_so_fast_punk
- Posts: 7
- Joined: Thu Nov 12, 2020 6:07 pm
Neopixels - chasing led effect
- Attachments
-
- MakeCode pulse.PNG (55.64 KiB) Viewed 479 times
- mikeysklar
- Posts: 13824
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Neopixels - chasing led effect
Will,
There is a chase example on this page. Let me know if this helps get you going.
https://makecode.adafruit.com/projects/animations
There is a chase example on this page. Let me know if this helps get you going.
https://makecode.adafruit.com/projects/animations
- not_so_fast_punk
- Posts: 7
- Joined: Thu Nov 12, 2020 6:07 pm
Re: Neopixels - chasing led effect
Thanks Mikey, thats really helpful =)
Please be positive and constructive with your questions and comments.