sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
534 stars 246 forks source link

Using with T-Watch 2020 #15

Closed Sk3yNet closed 4 years ago

Sk3yNet commented 4 years ago

First, my many thanks for the work you have put into this firmware. I've done a successful upload to my T-Watch 2020, but I found the line in config.h "To use T-Watch2020, please uncomment this line". I've tried uncommenting just that line or the whole block of code but then get errors when building:

.pio/libdeps/ttgo-t-watch/TTGO TWatch Library/src/LilyGoWatch.h:177:2: error: #error "Please define Watch model"

error "Please define Watch model"

Just wondering if that is expected behavior. Any guidance would be appreciated!

tbendiksen commented 4 years ago

This is expected behaviour. In C header files comments start with "//" and defines start with # I have not been involved in this, but I believe this to be a leftover from the LilyGo code that this is based on (see https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library/blob/master/examples/LVGL/SimpleWatch/config.h as an example).

Saying that this should be cleaned up for clarity, but functionally this is correct and you should leave it as it was. This code only works for the TTGO T-Watch 2020 (unlike the LilyGo code which can also work on the very different 2019 model).

Sk3yNet commented 4 years ago

Great, thank you!