/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: 2013-03-31 17:07:36 UTC
  • Revision ID: tim@ed.am-20130331170736-hphm2hg0y6l7w6z1
made rtc-test's DS1307 library a symlink to the main one in src/util

Show diffs side-by-side

added added

removed removed

25
25
 
26
26
 
27
27
#include "major_mode.h"
 
28
#include "button.h"
28
29
 
29
30
 
30
31
class SettingsMajorMode : public MajorMode
32
33
public:
33
34
 
34
35
        /**
 
36
         * Constructor which provides the button.
 
37
         */
 
38
        SettingsMajorMode( Button &button );
 
39
 
 
40
        /**
35
41
         * Called once per segment to draw a column of LEDs.
 
42
         *
36
43
         * @param segment the segment number to draw
37
44
         */
38
45
        void draw( int segment );
58
65
        void press();
59
66
 
60
67
        /**
61
 
         * Called when the button haas been long-pressed.
 
68
         * Called when the button has been long-pressed.
62
69
         */
63
70
        void long_press();
64
71
 
74
81
        
75
82
        /** part of item that we're setting */
76
83
        int _part;
 
84
 
 
85
        /** is there an interim press and does it need actioning? */
 
86
        char _press_state;
 
87
 
 
88
        /** the button */
 
89
        Button &_button;
77
90
};
78
91
 
79
92