summaryrefslogtreecommitdiff
path: root/stm/lcd.c
diff options
context:
space:
mode:
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;