0

Neopixels - chasing led effect
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Neopixels - chasing led effect

by not_so_fast_punk on Mon Nov 16, 2020 4:58 am

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
Attachments
MakeCode pulse.PNG
MakeCode pulse.PNG (55.64 KiB) Viewed 359 times

not_so_fast_punk
 
Posts: 7
Joined: Thu Nov 12, 2020 6:07 pm

Re: Neopixels - chasing led effect

by mikeysklar on Mon Nov 16, 2020 10:41 pm

Will,

There is a chase example on this page. Let me know if this helps get you going.

https://makecode.adafruit.com/projects/animations

mikeysklar
 
Posts: 4920
Joined: Mon Aug 01, 2016 8:10 pm

Re: Neopixels - chasing led effect

by not_so_fast_punk on Wed Nov 18, 2020 1:50 am

Thanks Mikey, thats really helpful =)

not_so_fast_punk
 
Posts: 7
Joined: Thu Nov 12, 2020 6:07 pm

Please be positive and constructive with your questions and comments.