top of page

Week of 9/30 - 10/04

  • kaurmanji0719
  • Oct 2, 2024
  • 1 min read

This week I made significant progress on my lamp. I coded the commands for 15 of the buttons and I am working on completing the commands for the remaining 6 buttons. I paid most of my attention to one command in particular. This command cycled through all the colors of the rainbow and transitions them out one pixel at a time. The main problem that I ran into with this command was that it was far too complex for it to be easily readable. To fix this issue, Mr. Christy suggested that I utilize an array and a nested for loop to make the code easier to implement. This worked perfectly. I created an element for each color in the array and cycled through them in one for loop. In the other for loop I cycle through each individual pixel. This created the "chasing light" type of effect that I was looking to make. The colors cycle through only twice which I would like to change. I want the colors to continue to cycle through forever after pressing the button while only changing when I press a different button. I'm still working on achieving this while also brainstorming unique commands for each button on the remote.

ree


 
 
 

Comments


bottom of page