/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/switcher_major_mode.cc

  • 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:
25
25
#include "digital_clock_mode.h"
26
26
#include "info_mode.h"
27
27
#include "test_pattern_mode.h"
28
 
#include "../text.h"
29
 
#include "../common.h"
 
28
#include "text.h"
 
29
#include "common.h"
30
30
 
31
31
 
32
32
SwitcherMajorMode::SwitcherMajorMode()
62
62
 
63
63
void SwitcherMajorMode::activate()
64
64
{
65
 
        // reset text
66
 
        Text::reset();
67
 
        leds_off();
68
 
 
69
65
        _mode = 0;
70
66
        _modes[ _mode ]->activate();
71
67
}
90
86
        // inc mode
91
87
        if( !_modes[ ++_mode ] ) _mode = 0;
92
88
 
93
 
        // reset text
94
 
        Text::reset();
95
 
        leds_off();
96
 
 
97
89
        _modes[ _mode ]->activate();
98
90
}