/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-02-29 21:56:32 UTC
  • Revision ID: edam@waxworlds.org-20120229215632-kypb9491vx7bicef
moved some stuf round, created a re-usable pool of message buffers, genericised "modes" for messages

Show diffs side-by-side

added added

removed removed

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