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_
27
#include "minor_mode.h"
30
class DigitalClockMode : public MinorMode
37
* Called to inform the mode that there has been a (short) button press.
42
* Draw an individual segment (column of pixels)
44
* @param segment the segment number
46
void draw( int segment );
49
* Called before the first segment is drawn, once per "frame".
54
* Called when this minor mode becomes active
61
* Set the text message
63
* @param update or reset message?
65
void set_message( bool update );
70
#endif //_DIGITAL_CLOCK_MODE_H_