Description
In this example eight leds are blinking at slightly different frequencies. The effect is that they will get out off phase after about a minute or so. All blinkers are independent preempted tasks. There is one switch which activates a semaphore so that all tasks block at a particular point until all of them have arrived there. If this happens the semaphore is released (by arrival of the last task) and the game starts all over again.
Hardware
ATtiny861 and STK500. The eight leds on the STK500 connected to port A. Pin 0 on port B must be connected to a switch.
Contact: info@femtoos.org | CC-BY License: Ruud Vlaming. |