31
31
static int _flavour = 0;
34
static unsigned long _millis_last = 0;
37
34
static void reset_messages()
42
Text::reset_message( 0, Text::MODE_TOP | Text::MODE_THREEQUARTERS |
43
Text::MODE_HSCROLL, Text::SCALE_SMALL );
39
Text::reset_message( 0, Text::MODE_TOP | Text::MODE_THREEQUARTERS );
46
Text::reset_message( 0, Text::MODE_TOP | Text::MODE_HALF,
48
Text::reset_message( 1, Text::MODE_BOTTOM | Text::MODE_HALF,
42
Text::reset_message( 0, Text::MODE_TOP | Text::MODE_HALF );
43
Text::reset_message( 1, Text::MODE_BOTTOM | Text::MODE_HALF );
73
67
void info_mode_draw_reset()
69
PString str0( Text::_messages[ 0 ], MESSAGE_LEN );
70
PString str1( Text::_messages[ 1 ], MESSAGE_LEN );
78
PString str0( Text::_messages[ 0 ], MESSAGE_LEN * 4 );
81
"Propeller Clock mk.1 ... "
82
"Created by Tim and Dan Marston in 2011 ... "
83
"http://ed.am/dev/elec/propeller-clock" );
84
Text::set_message( 0, str0 );
78
"Propeller Clock mk.1 ... "
79
"Created by Tim and Dan Marston in 2011 ... "
80
"http://ed.am/dev/elec/propeller-clock" );
88
PString str0( Text::_messages[ 0 ], MESSAGE_LEN );
89
PString str1( Text::_messages[ 1 ], MESSAGE_LEN );
93
unsigned long millis = ::millis();
95
(unsigned long)60 * 1000 / ( millis - _millis_last ) );
96
_millis_last = millis;
97
Text::set_message( 0, str0 );
98
Text::set_message( 1, str1 );
84
str1.format( "%d", 123 );
88
Text::set_message( 0, str0 );
89
Text::set_message( 1, str1 );
105
93
void info_mode_activate()
108
_millis_last = ::millis();