diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-01-26 17:41:01 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-01-26 17:41:01 +0000 |
| commit | 75abee206d1a575aa98a486d043c94d64df432c1 (patch) | |
| tree | f5842abbd035f84abd7cf758c8b4bb6efdfca17c /stm/lcd.c | |
| parent | 8fcf7b858d28acb098ca4ee85860ca4ed88f0207 (diff) | |
stm: USB host mode working! Restructure stm library directories.
Diffstat (limited to 'stm/lcd.c')
| -rw-r--r-- | stm/lcd.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -324,6 +324,12 @@ void lcd_print_strn(const char *str, unsigned int len) { } if (*str == '\n') { lcd_next_line = 1; + } else if (*str == '\r') { + lcd_column = 0; + } else if (*str == '\b') { + if (lcd_column > 0) { + lcd_column--; + } } else if (lcd_column >= LCD_BUF_W) { lcd_next_line = 1; str -= 1; @@ -359,6 +365,6 @@ void lcd_print_strn(const char *str, unsigned int len) { } if (did_new_line) { - sys_tick_delay_ms(200); + sys_tick_delay_ms(50); } } |
