I have made two more led shows. They are called "Dashes" and "DashErase". "Dashes" one by one, kinda like a chase, makes a bunch of dashes on the led strip and once they are done being made they just stay there. "DashErase" does the same thing as "Dashes" however once the dashes are formed it then proceeds to erase the dashes in the same fashion that it formed them. There was quite a bit that had to be done to figure out how to make these work. At first I was trying to figure out completely by myself how to make the dashes work but after like and hour and half, almost two hours I decided to see if I could find something that might help. I ended up looking at the "theatreChase" function in the ButtonCyclerLedStrip program that I originally used to help me figure out how to make a button work. Although the theatre chase led show is a fair bit different from what I wanted, it ended up helping me figure out what I needed to do to make my "Dashes" function work. Then after I had figured out how to make "Dashes" work, figuring out "DashErase" was super easy. All I had to do was add another for loop that drew the dashes but instead of drawing, it erased the pixels.
0 Comments
Leave a Reply. |
What's Going on Here?This is Ethan's blog about the progress done on their Capstone Project (final project) for their Computer Science 30 course.
Resources UsedArduino Reference Page
Interrupt Reference Interrupt Millis Function Arduino Forum Page Adafruit Button Help Sub Reddit Button Help Example Code UsedThe Led ShowsMy ProjectClick Here to go and take a look at the code for my project and maybe even download and use it if you want.
|