/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-28 17:11:15 UTC
  • Revision ID: edam@waxworlds.org-20120228171115-j3k91a3v71d3wnc1
cleanu

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