Plz help an architecture student
http://img220.imageshack.us/img220/5681/soruhk1.jpg
I have 20 RGB leds on a PhidgetLed 64.
Basically it acts as 60 leds and it needs 60 different commands to light.
I want to make a customizable time line. And a timer to make it work.
So far I can do all the commands I need. I can manually do what I want to do.
I can also change the timer intervals with a slider.
How can I put multiple commands in a phase? How can I bundle multiple commands under one name?
Any idea is greatly Appreciated..
Thank You
Re: Plz help an architecture student
Or without any interface to be more simple?
Code:
Dim I As Integer
Phase1
dothis
dothat
....
Phase65
dosomething
dosomethingelse
Private Sub Timer1_Timer()
Phase(I) execute
I = I + 1
End Sub
I really need this for my final project's scale model...
Please help meeee!!
Re: Plz help an architecture student
You'll need an array to store all of the 'commands' for all of the phases. I'm guessing this is simply Byte data for RGB values. So if, for example, you had 5 phases, you'd need an array with 300 elements (0 to 299). The first phase would use (0 to 59), the second would use (60 to 119), and so on. It's easy to get the indexes you need for any given phase. Simply multiply the phase number by 60 to get the low index, then add 0 to 59 in a loop. (The first phase should be 0)
Re: Plz help an architecture student
Thank you very much..
Trying to swallow..