I cloned the very nice clock and the well-documented code for the TFT GPS clock and modified it in two ways.
First there is a backwards compatible version which can be Europeanized with formats for date and units. It also has possibility for removing battery icon, when run from a USB supply.
New boolean variables to set:
- US_UNITS - if false: m, kmh, Little-endian date with '.', if true: feet, mph, Middle-Endian date with '/'
- BATTERY_DISPLAY - true: as original code, false: no display of battery icon and status
2. Minor fixes:
- New way of initializing Serial1 as the original one didn't compile in Arduino IDE 1.8.13. See?
- The satellite count in the upper right corner is more agile so it now drops to 0 when GPS signal is lost, rather than stay forever at last satellite count.
See?
Sverre
https://la3za.blogspot.com/