Merge pull request #821 from fdlamotte/ui_gps_page

ui_task: initial gps page
This commit is contained in:
ripplebiz authored and GitHub committed 2025-10-02 18:54:23 +10:00
commit 9e0cd038c4
8 files changed
+70 -5

No files matched your search

+9
View File
@@ -32,6 +32,15 @@ public:
setCursor(mid_x - w/2, y);
print(str);
}
virtual void drawTextRightAlign(int x_anch, int y, const char* str) {
int w = getTextWidth(str);
setCursor(x_anch - w, y);
print(str);
}
virtual void drawTextLeftAlign(int x_anch, int y, const char* str) {
setCursor(x_anch, y);
print(str);
}
// convert UTF-8 characters to displayable block characters for compatibility
virtual void translateUTF8ToBlocks(char* dest, const char* src, size_t dest_size) {