aboutsummaryrefslogtreecommitdiff
path: root/driver_fw/lcd1602.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-04-15 13:07:11 +0900
committerjaseg <git@jaseg.net>2019-04-15 13:07:11 +0900
commite79f3d4047aaf9beb8a59f1d30d93c78efae0cc5 (patch)
tree89f078dfc7f39b576d362d83f43c12aa620d4197 /driver_fw/lcd1602.h
parenta8448faccabdcf5ca1fe05760bbbfb78a1c5e917 (diff)
download8seg-e79f3d4047aaf9beb8a59f1d30d93c78efae0cc5.tar.gz
8seg-e79f3d4047aaf9beb8a59f1d30d93c78efae0cc5.tar.bz2
8seg-e79f3d4047aaf9beb8a59f1d30d93c78efae0cc5.zip
driver/fw: Add tiny printf
Diffstat (limited to 'driver_fw/lcd1602.h')
-rw-r--r--driver_fw/lcd1602.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver_fw/lcd1602.h b/driver_fw/lcd1602.h
index 70b324e..4cb2758 100644
--- a/driver_fw/lcd1602.h
+++ b/driver_fw/lcd1602.h
@@ -32,6 +32,9 @@
#define LCD_I2C_PERIPH I2C1
#define LCD_I2C_ADDR 0x4e
+/* 16 spaces you can concatenate to printf formats to make sure the entire LCD line is always cleared */
+#define LCD_FILL " "" "" "" "
+
void lcd1602_init(); // Инициализация дисплея
void lcd_write_str(uint8_t in_u8X, uint8_t in_u8Y, char* in_cChar); // Отправить строку на экран с указанием позиции
void lcd_send_char(char in_cChar); // Отправить символ на экран