summaryrefslogtreecommitdiff
path: root/lcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcd.c')
-rw-r--r--lcd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lcd.c b/lcd.c
index 24b8dc1..d98c0b0 100644
--- a/lcd.c
+++ b/lcd.c
@@ -210,6 +210,12 @@ void LCD_write_padded_spaces(int row, int col, char *LCD_string, int width)
}
+void LCD_write_padded_to_end_of_line(int row, int col, char *LCD_string)
+{
+ LCD_write_padded_spaces (row, col, LCD_string, LCD_cols - col - strlen (LCD_string));
+}
+
+
static void LCD_make_custom_chars()
{
/* define custom LCD characters 2 and 3 (up arrow and down arrow).*/