Fix SETCURSOR_RJ
This commit is contained in:
parent
81c2c3ec11
commit
7e0008f5b3
@ -58,12 +58,12 @@
|
|||||||
|
|
||||||
#if HAS_GRAPHICAL_LCD
|
#if HAS_GRAPHICAL_LCD
|
||||||
#define SETCURSOR(col, row) lcd_moveto(col * (MENU_FONT_WIDTH), (row + 1) * (MENU_FONT_HEIGHT))
|
#define SETCURSOR(col, row) lcd_moveto(col * (MENU_FONT_WIDTH), (row + 1) * (MENU_FONT_HEIGHT))
|
||||||
#define SETCURSOR_RJ(len, row) lcd_moveto(LCD_PIXEL_WIDTH - len * (MENU_FONT_WIDTH), (row + 1) * (MENU_FONT_HEIGHT))
|
#define SETCURSOR_RJ(len, row) lcd_moveto(LCD_PIXEL_WIDTH - (len) * (MENU_FONT_WIDTH), (row + 1) * (MENU_FONT_HEIGHT))
|
||||||
#define LCDPRINT(p) u8g.print(p)
|
#define LCDPRINT(p) u8g.print(p)
|
||||||
#define LCDWRITE(c) u8g.print(c)
|
#define LCDWRITE(c) u8g.print(c)
|
||||||
#else
|
#else
|
||||||
#define SETCURSOR(col, row) lcd_moveto(col, row)
|
#define SETCURSOR(col, row) lcd_moveto(col, row)
|
||||||
#define SETCURSOR_RJ(len, row) lcd_moveto(LCD_WIDTH - len, row)
|
#define SETCURSOR_RJ(len, row) lcd_moveto(LCD_WIDTH - (len), row)
|
||||||
#define LCDPRINT(p) lcd_put_u8str(p)
|
#define LCDPRINT(p) lcd_put_u8str(p)
|
||||||
#define LCDWRITE(c) lcd_put_wchar(c)
|
#define LCDWRITE(c) lcd_put_wchar(c)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user