Reduced string storage using tokens (#15593)
This commit is contained in:
@@ -60,13 +60,31 @@ inline int lcd_put_u8str_max_P(const lcd_uint_t col, const lcd_uint_t row, PGM_P
|
||||
}
|
||||
|
||||
void lcd_put_int(const int i);
|
||||
inline void lcd_put_int(const lcd_uint_t col, const lcd_uint_t row, const int i) { lcd_moveto(col, row); lcd_put_int(i); }
|
||||
inline void lcd_put_int(const lcd_uint_t col, const lcd_uint_t row, const int i) {
|
||||
lcd_moveto(col, row);
|
||||
lcd_put_int(i);
|
||||
}
|
||||
|
||||
inline int lcd_put_u8str_P(PGM_P str) { return lcd_put_u8str_max_P(str, PIXEL_LEN_NOLIMIT); }
|
||||
inline int lcd_put_u8str_P(const lcd_uint_t col, const lcd_uint_t row, PGM_P str) { lcd_moveto(col, row); return lcd_put_u8str_P(str); }
|
||||
inline int lcd_put_u8str_P(PGM_P const pstr) { return lcd_put_u8str_max_P(pstr, PIXEL_LEN_NOLIMIT); }
|
||||
inline int lcd_put_u8str_P(const lcd_uint_t col, const lcd_uint_t row, PGM_P const pstr) {
|
||||
lcd_moveto(col, row);
|
||||
return lcd_put_u8str_P(pstr);
|
||||
}
|
||||
|
||||
uint8_t lcd_put_u8str_ind_P(PGM_P const pstr, const uint8_t ind, const uint8_t maxlen=20);
|
||||
inline uint8_t lcd_put_u8str_ind_P(const lcd_uint_t col, const lcd_uint_t row, PGM_P const pstr, const uint8_t ind, const uint8_t maxlen=20) {
|
||||
lcd_moveto(col, row);
|
||||
return lcd_put_u8str_ind_P(pstr, ind, maxlen);
|
||||
}
|
||||
|
||||
inline int lcd_put_u8str(const char* str) { return lcd_put_u8str_max(str, PIXEL_LEN_NOLIMIT); }
|
||||
inline int lcd_put_u8str(const lcd_uint_t col, const lcd_uint_t row, PGM_P str) { lcd_moveto(col, row); return lcd_put_u8str(str); }
|
||||
inline int lcd_put_u8str(const lcd_uint_t col, const lcd_uint_t row, PGM_P const str) {
|
||||
lcd_moveto(col, row);
|
||||
return lcd_put_u8str(str);
|
||||
}
|
||||
|
||||
inline int lcd_put_wchar(const wchar_t c) { return lcd_put_wchar_max(c, PIXEL_LEN_NOLIMIT); }
|
||||
inline int lcd_put_wchar(const lcd_uint_t col, const lcd_uint_t row, const wchar_t c) { lcd_moveto(col, row); return lcd_put_wchar(c); }
|
||||
inline int lcd_put_wchar(const lcd_uint_t col, const lcd_uint_t row, const wchar_t c) {
|
||||
lcd_moveto(col, row);
|
||||
return lcd_put_wchar(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user