/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 16:50:26 UTC
  • Revision ID: edam@waxworlds.org-20120228165026-pwnwo300xx2e2kg6
removed ulibc, fixed button, added text rendering

Show diffs side-by-side

added added

removed removed

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