summaryrefslogtreecommitdiff
path: root/stm/lcd.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-22 23:09:25 +0100
committerDamien <damien.p.george@gmail.com>2013-10-22 23:09:25 +0100
commite9f1e50be49edc6d01ff006e0a1f5291672ec808 (patch)
treea1ca33259f91b4941210ef68ae7db075b47c8437 /stm/lcd.c
parentec63cce470f943003c728fde049919dedd5b6a44 (diff)
Board running boot.py, working REPL, soft reboot.
Diffstat (limited to 'stm/lcd.c')
-rw-r--r--stm/lcd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stm/lcd.c b/stm/lcd.c
index 3b65ed85f..ecc657580 100644
--- a/stm/lcd.c
+++ b/stm/lcd.c
@@ -1,3 +1,4 @@
+#include <string.h>
#include <stm32f4xx_gpio.h>
#include "misc.h"
@@ -138,6 +139,10 @@ void lcd_init() {
lcd_next_line = 0;
}
+void lcd_print_str(const char *str) {
+ lcd_print_strn(str, strlen(str));
+}
+
void lcd_print_strn(const char *str, unsigned int len) {
int redraw_min = lcd_line * LCD_BUF_W + lcd_column;
int redraw_max = redraw_min;