20
20
* You should have received a copy of the GNU Lesser General Public License
21
21
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef _DIGITAL_CLOCK_H_
24
#define _DIGITAL_CLOCK_H_
27
* Called to inform the mode that there has been a (short) button press.
29
extern void digital_clock_press();
32
* Draw an individual segment (column of pixels)
34
* @param segment the segment number
36
extern void digital_clock_draw( int segment );
39
* Called before the first segment is drawn, once per "frame".
41
extern void digital_clock_draw_reset();
44
* Called when this minor mode becomes active
46
extern void digital_clock_activate();
49
#endif //_DIGITAL_CLOCK_H_
23
#ifndef _DIGITAL_CLOCK_MODE_H_
24
#define _DIGITAL_CLOCK_MODE_H_
30
class DigitalClockMode : public Mode
35
* Called once per segment to draw a column of LEDs.
36
* @param segment the segment number to draw
38
void draw( int segment );
41
* Called at the start of a "frame", before any segments are drawn.
46
* Called when the mode is becoming active.
51
* Called when the button has been pressed.
60
void reset_messages();
62
/** current flavour */
67
#endif //_DIGITAL_CLOCK_MODE_H_