tdisp fixes
This commit is contained in:
parent
1c1b3c8d74
commit
83ba8748bc
2 changed files with 4 additions and 6 deletions
|
@ -93,13 +93,13 @@ void tdispHome(void);
|
||||||
void tdispGotoXY(coord_t col, coord_t row);
|
void tdispGotoXY(coord_t col, coord_t row);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Store a custom character in the displays RAM
|
* @brief Store a custom character in RAM
|
||||||
*
|
*
|
||||||
* @note This usually must be done after each power-up since most
|
* @note This usually must be done after each power-up since most
|
||||||
* LCDs lose their RAM content.
|
* LCDs lose their RAM content.
|
||||||
*
|
*
|
||||||
* @param[in] location On which address to store the character (from 0 up to max)
|
* @param[in] location On which address to store the character (from 0 up to max)
|
||||||
* @param[in] char The character to be stored. This is an array.
|
* @param[in] charmap The character to be stored.
|
||||||
*/
|
*/
|
||||||
void tdispCreateChar(uint8_t location, char *charmap);
|
void tdispCreateChar(uint8_t location, char *charmap);
|
||||||
|
|
||||||
|
|
|
@ -105,10 +105,8 @@ void tdispDrawChar(char c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void tdispDrawString(char *s) {
|
void tdispDrawString(char *s) {
|
||||||
char c;
|
while(*s)
|
||||||
|
tdispDrawChar(*s++);
|
||||||
while(c = *s++)
|
|
||||||
tdispDrawChar(c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void tdispDrawCharLocation(coord_t col, coord_t row, char c) {
|
void tdispDrawCharLocation(coord_t col, coord_t row, char c) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue