Skip to content

ttgo t-watch 2020 simple retro watch with long battery life, default in light sleep. Simple time/date/battery screen, and a couple api connects.

Notifications You must be signed in to change notification settings

paulmartinetti/twatch-take8

Repository files navigation

Repository name - WakeupFromSensor2

Author - experienced dad and programmer, new to Arduino, C++, got a couple ttgo 2020s for my 12 yo son and me. We like the retro look. A flick of the wrist wakes up the watch from light sleep. Battery lasts all day. While awake, if screen is touched, Wifi connection updates time, then displays weather in a text readout, then back to sleep

Instructions if you are new to Arduino:
1. Create a New Folder named WakeupFromSensor2, put all of the repository files in it (.ino and .h files)
2. Open the folder and launch WakeupFromSensor2.ino in the Arduino IDE.
3. DETAILS here --> config.h, to connect to wifi and check weather, replace the 4 placeholder variables with your info, see comments for details

Video demo
https://youtu.be/tKbF3VBxxFI

Repository
strengths - sleep and wake functions, light-weight state management
weaknesses - err checking, compartmentalizing / reusing code, data-types..need to use more char's

vvv--I'm using bits of code from these brilliant folks and helpful resources--vvv

The "official" watch library
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library

Fonts to support glyphs and latin characters--no line wrapping fn however
In the ttgo library, it's in examples > U8g2_for_TFT_eSPI > Unicode
https://www.arduino.cc/reference/en/libraries/u8g2_for_adafruit_gfx/
https://github.com/olikraus/u8g2/wiki

Dan Geiger's watch code
https://www.instructables.com/Lilygo-T-Watch-2020-Arduino-Framework/

DIY Projects - Fr / En
https://diyprojects.io/t-watch-sleep-and-wake-up-with-bma423-accelerometer-or-esp32-button/#.X_NqVOlKjlw

J Hershey's OpenWeatherOneCall library
https://github.com/JHershey69/OpenWeatherOneCall

WF Dudley - t-watch 2020
https://github.com/wfdudley/T-watch-2020

Bald Engineer - the F() Macro explained
https://www.baldengineer.com/arduino-f-macro.html

Date time formatting in C++
http://www.cplusplus.com/reference/ctime/strftime/

Data types in C++
https://www.tutorialspoint.com/cplusplus/cpp_data_types.htm

About

ttgo t-watch 2020 simple retro watch with long battery life, default in light sleep. Simple time/date/battery screen, and a couple api connects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages