Use step mode for display
This commit is contained in:
@@ -41,7 +41,7 @@ int main (void)
|
|||||||
tinygl_init (LOOP_RATE);
|
tinygl_init (LOOP_RATE);
|
||||||
tinygl_font_set (&font3x5_1);
|
tinygl_font_set (&font3x5_1);
|
||||||
tinygl_text_speed_set (MESSAGE_RATE);
|
tinygl_text_speed_set (MESSAGE_RATE);
|
||||||
tinygl_text_mode_set (TINYGL_TEXT_MODE_SCROLL);
|
tinygl_text_mode_set (TINYGL_TEXT_MODE_STEP);
|
||||||
tinygl_text_dir_set (TINYGL_TEXT_DIR_ROTATE);
|
tinygl_text_dir_set (TINYGL_TEXT_DIR_ROTATE);
|
||||||
|
|
||||||
navswitch_init ();
|
navswitch_init ();
|
||||||
@@ -88,6 +88,10 @@ int main (void)
|
|||||||
uint8_t data;
|
uint8_t data;
|
||||||
|
|
||||||
data = ir_uart_getc ();
|
data = ir_uart_getc ();
|
||||||
|
|
||||||
|
/* Note, if messages come in too fast, say due to IR
|
||||||
|
inteference from fluorescent lights, then the display
|
||||||
|
will not keep up and will appear to freeze. */
|
||||||
show_byte (data);
|
show_byte (data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user