/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/modes/settings_major_mode.h

  • Committer: Tim Marston
  • Date: 2012-05-23 23:02:50 UTC
  • Revision ID: tim@ed.am-20120523230250-3pls2u6zt3av0uam
fixed text glitch; extended all modes; added screen flip super-long press;
added button unpress debounde; moved interim button press ignoration to
settings mode; fixed left-over led issue; finished for demo!

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
{
33
33
public:
34
34
 
 
35
        /**
 
36
         * Constructor which provides the button.
 
37
         */
35
38
        SettingsMajorMode( Button &button );
36
39
 
37
40
        /**
 
41
         * Called once per segment to draw a column of LEDs.
 
42
         *
 
43
         * @param segment the segment number to draw
 
44
         */
 
45
        void draw( int segment );
 
46
 
 
47
        /**
38
48
         * Called at the start of a "frame", before any segments are drawn.
39
49
         */
40
50
        void draw_reset();
55
65
        void press();
56
66
 
57
67
        /**
58
 
         * Called when the button haas been long-pressed.
 
68
         * Called when the button has been long-pressed.
59
69
         */
60
70
        void long_press();
61
71
 
72
82
        /** part of item that we're setting */
73
83
        int _part;
74
84
 
 
85
        /** is there an interim press and does it need actioning? */
 
86
        char _press_state;
 
87
 
75
88
        /** the button */
76
89
        Button &_button;
77
90
};