/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Drawer
{
public:

	/**
	 * Draw an individual segment (column of pixels)
	 *
	 * @param segment the segment number
	 */
	virtual void draw( int segment ) = 0;

	/**
	 * Called before the first segment is drawn, once per "frame".
	 */
	virtual void draw_reset();

protected:

	/**
	 * Turn on/off an LED
	 *
	 * @param led index of the LED (0 to 9)
	 * @param on true to turn on, false to turn off
	 */
	void led_on( int led, bool on );

};