Merge pull request #1530 from OperatorFoundation/master

Add getCursorX and getCursorY
This commit is contained in:
olikraus
2022-03-04 13:51:21 +01:00
committed by GitHub
+2
View File
@@ -381,6 +381,8 @@ uint8_t u8g2_UserInterfaceInputValue(u8g2_t *u8g2, const char *title, const char
void noDisplay(void) { u8g2_SetPowerSave(&u8g2, 1); }
void display(void) { u8g2_SetPowerSave(&u8g2, 0); }
void setCursor(u8g2_uint_t x, u8g2_uint_t y) { tx = x; ty = y; }
u8g2_uint_t getCursorX() { return tx; }
u8g2_uint_t getCursorY() { return ty; }
/* u8glib compatible functions */
void sleepOn(void) { u8g2_SetPowerSave(&u8g2, 1); }