aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tdisp/HD44780/tdisp_lld.c8
-rw-r--r--include/tdisp/lld/tdisp_lld.h2
-rw-r--r--src/tdisp/tdisp.c4
3 files changed, 12 insertions, 2 deletions
diff --git a/drivers/tdisp/HD44780/tdisp_lld.c b/drivers/tdisp/HD44780/tdisp_lld.c
index 29efbf92..c150c870 100644
--- a/drivers/tdisp/HD44780/tdisp_lld.c
+++ b/drivers/tdisp/HD44780/tdisp_lld.c
@@ -107,6 +107,14 @@ void tdisp_lld_create_char(uint8_t address, char *charmap) {
}
}
+void tdisp_lld_clear(void) {
+ tdisp_lld_write_cmd(0x01);
+}
+
+void tdisp_lld_home(void) {
+ tdisp_lld_write_cmd(0x02);
+}
+
#endif /* GFX_USE_TDISP */
/** @} */
diff --git a/include/tdisp/lld/tdisp_lld.h b/include/tdisp/lld/tdisp_lld.h
index 8650d887..891b7b98 100644
--- a/include/tdisp/lld/tdisp_lld.h
+++ b/include/tdisp/lld/tdisp_lld.h
@@ -42,6 +42,8 @@ extern void tdisp_lld_write_data(uint8_t data);
extern bool_t tdisp_lld_init(void);
extern void tdisp_lld_set_cursor(coord_t col, coord_t row);
extern void tdisp_lld_create_char(uint8_t address, char *charmap);
+extern void tdisp_lld_clear(void);
+extern void tdisp_lld_home(void);
#ifdef __cplusplus
}
diff --git a/src/tdisp/tdisp.c b/src/tdisp/tdisp.c
index a7e0745d..8a2c501a 100644
--- a/src/tdisp/tdisp.c
+++ b/src/tdisp/tdisp.c
@@ -71,11 +71,11 @@ void tdispSetAttributes(uint8_t attributes) {
}
void tdispClear(void) {
- tdisp_lld_write_cmd(0x01);
+ tdisp_lld_clear();
}
void tdispHome(void) {
- tdisp_lld_write_cmd(0x02);
+ tdisp_lld_home();
}
void tdispCreateChar(uint8_t address, char *charmap) {