09-25-2011 10:07 AM
I am trying to control several flash rates. This I have done with a "wait. But I have to improve my program so I can chance between three different flash rates. 0,2s on and o,2 sec off, 0,5s on and 0,5 sec off and 0,8 s on and 0,8 sec off. I have tried to just add tree "waits" but this solution does not make it possible to change between the different flash rates.
Do you have an idea?
Best regards
T.Crousin
Solved! Go to Solution.
09-25-2011 10:55 AM - edited 09-25-2011 10:59 AM
That won't work. You have three waits. The longest delay will be the only one that matters. You need another shift register to hold the wait value. Or if it is constant you can autoindex the loop on an array. But I can see a state machine in your future.
Edit: It looks like this was already answered.