Glass Straws of Light
Gearing up for the final few weeks and things seem to be moving at the pace they need to. I have my space mapped out in Accock Gallery and have been able to visualize what I want to do with the space. I have also began coding for my object.
This time around, compared to coding for “Zed”, has been a lot easier. I am still running into similar issues converting code from one behaviour to another. In my case the first issue came from creating a button function that would allow me to turn the light source on and off and to cycle through different colors. At first I tried to create a code that would toggle a button signal from HIGH to LOW if the previous pressing action signaled HIGH and then default to HIGH otherwise. I figured out how to get this process to work with a single LED but getting it to communicate with a string of NeoPixels was a problem. I toyed around with this idea for a bit and then decided to create another code that would work a little different.
Button cycling is a pretty common code in arduino that allows a button to cycle through different actions in a specific order. Basically you write a few actions and order them in the way you want and the code will run through the actions one by one with each press of the button. This has been successful but has come with a bug that I would like to change. At the moment it I code for an action that is really long, like a minute or so, I have to wait for the action to be over before a button press will change to a new action. What I want to do is write an interruption line that will allow the button the default to the next action at any pressing. At the moment my code cycles through various LED temperatures of white and a few theatre scrolling patterns. I am exploring more complex displays involving visualizations of Binary and Morse Code. 00000101. dit dit dit dot dot.
I am going to be constructing the box to house everything this weekend or so. I have to get that part done before it gets crazy with procrastinators in Battelle over the next few weeks. Three weeks until the end of the year.
Reader Comments