/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/propeller-clock.cc

  • Committer: Tim Marston
  • Date: 2012-05-18 18:29:50 UTC
  • Revision ID: tim@ed.am-20120518182950-t85bn9a21n72uzm8
text messages are now individually enabled and draw()n automatically

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
        // draw
173
173
        _modes[ _mode ]->draw( segment );
174
174
 
175
 
        // TODO: remove this hack
176
 
        Text::post_draw();
 
175
        // draw text
 
176
        Text::draw( segment );
177
177
 
178
178
        // draw text rednerer's buffer
179
179
        TextRenderer::output_buffer();
265
265
        _button.set_event_times( event_times );
266
266
 
267
267
        // initialise RTC
268
 
        Time::init();
 
268
//      Time::load_time();
269
269
 
270
270
        // init text renderer
271
271
        TextRenderer::init();
275
275
        leds_off();
276
276
 
277
277
        static SwitcherMajorMode switcher;
278
 
        static SettingsMajorMode settings;
 
278
        static SettingsMajorMode settings( _button );
279
279
 
280
280
        // add major modes
281
281
        int mode = 0;