spaceAngel / cyberWatch

simple OS for LillyGO T-Watch V3
https://cyberwatch.cyberdeck.cz
GNU General Public License v3.0
32 stars 8 forks source link

T watch v2 #4

Closed baptistedftn closed 1 year ago

baptistedftn commented 1 year ago

Is it possible to use this code with the t-watch 2020v2?

spaceAngel commented 1 year ago

Don't know, sorry. In theory - yes, but must be tested. Maybe v2 doesnt have step counter/move sensor ?

baptistedftn commented 1 year ago

I've got this error src/CyberWatch.cpp: In member function 'void CyberWatch::init()': src/CyberWatch.cpp:30:25: error: 'class TTGOClass' has no member named 'motor_begin'; did you mean 'sdcard_begin'? TTGOClass::getWatch()->motor_begin(); ^~~~~~~~~~~ sdcard_begin *** [.pio/build/ttgo-t-watch/src/CyberWatch.cpp.o] Error 1 src/System/MotorController.cpp: In static member function 'static void MotorController::vibrate(uint8_t)': src/System/MotorController.cpp:9:25: error: 'class TTGOClass' has no member named 'motor' TTGOClass::getWatch()->motor->onec(100); ^~~~~ src/System/MotorController.cpp:12:26: error: 'class TTGOClass' has no member named 'motor' TTGOClass::getWatch()->motor->onec(150); ^~~~~ *** [.pio/build/ttgo-t-watch/src/System/MotorController.cpp.o] Error 1 ============================================= [FAILED] Took 4.12 seconds =============================================

spaceAngel commented 1 year ago

Ok, It seems that v2 has not motor for vibrate. I will fix this in near future - add support for v2. When this will be done, i will close this issue. :-)

baptistedftn commented 1 year ago

Thank you for your quick response

spaceAngel commented 1 year ago

hey there, solved problem with motor. Please test, if there will be everything ok, close this issue :)

baptistedftn commented 1 year ago

It works, thank you.