/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: edam
  • Date: 2012-05-18 12:11:01 UTC
  • Revision ID: tim@ed.am-20120518121101-0wik922hyvjkcjdi
switched back to using classes for modes

Show diffs side-by-side

added added

removed removed

25
25
 
26
26
 
27
27
#include "major_mode.h"
28
 
#include "button.h"
29
28
 
30
29
 
31
30
class SettingsMajorMode : public MajorMode
32
31
{
33
32
public:
34
33
 
35
 
        SettingsMajorMode( Button &button );
 
34
        /**
 
35
         * Called once per segment to draw a column of LEDs.
 
36
         * @param segment the segment number to draw
 
37
         */
 
38
        void draw( int segment );
36
39
 
37
40
        /**
38
41
         * Called at the start of a "frame", before any segments are drawn.
71
74
        
72
75
        /** part of item that we're setting */
73
76
        int _part;
74
 
 
75
 
        /** the button */
76
 
        Button &_button;
77
77
};
78
78
 
79
79