make uart_pty threadsafe
[simavr] / examples / board_timer_64led / README
1
2 timer_64led
3 (C) 2006-2009 Michel Pollet <buserror@gmail.com>
4
5 This is a real life project, see enclosed JPEG.
6
7 At atmega168 drives 4 74HC595 shift registers to drive 64 LEDs. 3 Buttons
8 provide an interface for "start", "stop" and "reset" of the timer.
9
10 The timer handles multiple days by switching to display "hours + minutes"
11 instead of "minutes + seconds" after an hour.
12
13 The LED brightness changes if you stop the timer.
14
15 The interest of this in simavr is the ease of making a "fake peripheral"
16 that simulates the 4 shift registers, recover the PWM duty cycle and
17 send button events.
18
19 Also, make sure to record a "wave file" to display in gtkwave, you will
20 see the Interupt flags, the shift register being filled, the latch pins,
21 and even the PWM duty cycle.