Posts

Showing posts from October, 2023

Neo Pixel LED Code Breakdown!

Today I'm going to be going over some code segments from a recent video I made on using a neo pixel with Arduino. You can watch the video here: https://youtu.be/CPTLbmnqsGU I plan to use this in a few other projects I have planned for Halloween! I hope you enjoy them and possibly build one yourself. Bur first I had to figure out how to use one with and Arduino. The great thing about the neo pixel line is the open source library which can be found here:  https://github.com/adafruit/Adafruit_NeoPixel Once you have the library you have quite a bit of starting code to work with. This is where I was able to find the building blocks for the four Arduino sketches I have created. Fade Color and Fade Color Change I found the base code online here: https://gist.github.com/fenihel/835719d8f4af0d545242898bcb6a86c4 I then edited this to include a delay that helped smooth out the fade effect. I then copied it for a second color and edited the setLightsToBrightness method to intake a se...