/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/digital_clock_mode.h

  • Committer: edam
  • Date: 2012-03-03 10:06:31 UTC
  • Revision ID: edam@waxworlds.org-20120303100631-ae3idks1703vdm05
widenned clock hands, tweaked scales, got top & bottom text modes working

Show diffs side-by-side

added added

removed removed

27
27
#include "minor_mode.h"
28
28
 
29
29
 
30
 
class DigitalClockMode
31
 
    :
32
 
    public MinorMode
 
30
class DigitalClockMode : public MinorMode
33
31
{
34
32
public:
35
33
 
36
34
        DigitalClockMode();
37
35
 
38
36
        /**
 
37
         * Called to inform the mode that there has been a (short) button press.
 
38
         */
 
39
        void press();
 
40
 
 
41
        /**
39
42
         * Draw an individual segment (column of pixels)
40
43
         *
41
44
         * @param segment the segment number
43
46
        void draw( int segment );
44
47
 
45
48
        /**
46
 
         * Called to inform the mode that there has been a (short) button press.
 
49
         * Called before the first segment is drawn, once per "frame".
47
50
         */
48
 
        void press();
 
51
        void draw_reset();
49
52
 
50
53
        /**
51
54
         * Called when this minor mode becomes active
56
59
        
57
60
        /**
58
61
         * Set the text message
 
62
         *
 
63
         * @param update or reset message?
59
64
         */
60
 
        void set_message();
 
65
        void set_message( bool update );
61
66
 
62
67
};
63
68