Browse Source

some more TDISP cleanup

remotes/origin_old/ugfx_release_2.6
Joel Bodenmann 10 years ago
parent
commit
1a05e4a89a
  1. 8
      drivers/tdisp/HD44780/tdisp_lld.c
  2. 2
      include/tdisp/lld/tdisp_lld.h
  3. 4
      src/tdisp/tdisp.c

8
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 */
/** @} */

2
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
}

4
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) {

Loading…
Cancel
Save