Neopixels - chasing led effect

Microsoft's MakeCode platform for easy blocks-style programming

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
not_so_fast_punk
 
Posts: 7
Joined: Thu Nov 12, 2020 6:07 pm

Neopixels - chasing led effect

Post by not_so_fast_punk »

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 476 times

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Neopixels - chasing led effect

Post by mikeysklar »

Will,

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

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

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

Re: Neopixels - chasing led effect

Post by not_so_fast_punk »

Thanks Mikey, thats really helpful =)

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

Return to “MakeCode”