24
24
#define _INFO_MODE_H_
30
class InfoMode : 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.
58
* Set up message buffers
60
void reset_messages();
62
/** display flavour */
65
/** previous millis */
66
unsigned long _millis_last;
28
* Called to inform the mode that there has been a (short) button press.
30
extern void info_mode_press();
33
* Draw an individual segment (column of pixels)
35
* @param segment the segment number
37
extern void info_mode_draw( int segment );
40
* Called before the first segment is drawn, once per "frame".
42
extern void info_mode_draw_reset();
45
* Called when this minor mode becomes active
47
extern void info_mode_activate();
70
50
#endif //_INFO_MODE_H_