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

  • Committer: Tim Marston
  • Date: 2012-05-18 14:55:12 UTC
  • Revision ID: tim@ed.am-20120518145512-4dg4ble01d47a8z5
moved rount Time a bit, and passed _button to SettingsMajorMode so that it can
come in and out of send_interim mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "Arduino.h"
29
29
 
30
30
 
 
31
void DigitalClockMode::draw( int segment )
 
32
{
 
33
        Text::draw( 0, segment );
 
34
        Text::draw( 1, segment );
 
35
}
 
36
 
 
37
 
31
38
void DigitalClockMode::draw_reset()
32
39
{
33
40
        PString str0( Text::_messages[ 0 ], MESSAGE_LEN * 4 );
48
55
                break;
49
56
        }
50
57
 
51
 
        Text::set_message_text( 0, str0 );
 
58
        Text::set_message( 0, str0 );
52
59
}
53
60
 
54
61
 
71
78
 
72
79
void DigitalClockMode::reset_messages()
73
80
{
74
 
        Text::reset();
75
 
 
76
81
        switch( _flavour )
77
82
        {
78
83
        case 0:
79
 
                Text::set_up_message( 0, Text::MODE_TOP | Text::MODE_ALL,
80
 
                                Text::SCALE_FAT );
 
84
                Text::reset_message( 0, Text::MODE_TOP | Text::MODE_ALL,
 
85
                                Text::SCALE_FAT);
81
86
                break;
82
87
        case 1:
83
 
                Text::set_up_message( 0, Text::MODE_HSCROLL | Text::MODE_TOP |
 
88
                Text::reset_message( 0, Text::MODE_HSCROLL | Text::MODE_TOP |
84
89
                                Text::MODE_THREEQUARTERS );
85
90
                break;
86
91
        }