some more TDISP cleanup

ugfx_release_2.6
Joel Bodenmann 2013-01-16 15:20:47 +01:00
parent a278e1c113
commit 1a05e4a89a
3 changed files with 12 additions and 2 deletions

View File

@ -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 */ #endif /* GFX_USE_TDISP */
/** @} */ /** @} */

View File

@ -42,6 +42,8 @@ extern void tdisp_lld_write_data(uint8_t data);
extern bool_t tdisp_lld_init(void); extern bool_t tdisp_lld_init(void);
extern void tdisp_lld_set_cursor(coord_t col, coord_t row); 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_create_char(uint8_t address, char *charmap);
extern void tdisp_lld_clear(void);
extern void tdisp_lld_home(void);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -71,11 +71,11 @@ void tdispSetAttributes(uint8_t attributes) {
} }
void tdispClear(void) { void tdispClear(void) {
tdisp_lld_write_cmd(0x01); tdisp_lld_clear();
} }
void tdispHome(void) { void tdispHome(void) {
tdisp_lld_write_cmd(0x02); tdisp_lld_home();
} }
void tdispCreateChar(uint8_t address, char *charmap) { void tdispCreateChar(uint8_t address, char *charmap) {