JohnySeven / TWatchSK

TTGO T-Watch 2020 v1 supporting Signal K features for displaying boat data and controlling devices on board.
MIT License
9 stars 1 forks source link

Made all the gui stuff into class + 12/24 hour format switch #11

Closed JohnySeven closed 3 years ago

JohnySeven commented 3 years ago

Made refactoring of everything in gui.h and gui.cpp file into Gui class.

Class inherits Configurable, so it can save or load json configuration.

So far I've added following settings:

  1. 24 hour format - needed for TimeSettings class
  2. Screen timeout - set to 5 seconds
  3. Time zone - will need to figure out all available time zone settings and update TimeSettings class to add some picker for it
  4. Brightness - this will control watch display brightness

@ba58smith please if you have time check it out and please leave your comments, thanks!

ba58smith commented 3 years ago

I looked through all of the changes, but I don't know enough about what most of the code is doing to be able to make any meaningful comments. (Just one.)

JohnySeven commented 3 years ago

@ba58smith was burning the midnight oil, and the 12 hour time format is supported even settings are working, please if you have time give it ride, if all goes well on your side I'll fix the conflicts and merge it to master. Thanks!

JohnySeven commented 3 years ago

I've done rebase and pushed final version. Merging now!