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_MODE_H_
24
#define _DIGITAL_CLOCK_MODE_H_
27
#include "minor_mode.h"
30
class DigitalClockMode : public MinorMode
37
* Draw an individual segment (column of pixels)
39
* @param segment the segment number
41
void draw( int segment );
44
* Called to inform the mode that there has been a (short) button press.
49
* Called when this minor mode becomes active
56
* Set the text message
63
#endif //_DIGITAL_CLOCK_MODE_H_
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_