mirror of
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
synced 2026-02-20 01:21:25 +01:00
Added DRV2605 enable for V2
This commit is contained in:
@@ -50,3 +50,6 @@
|
||||
## (9.12.2020)
|
||||
- Turn on Twatch 2019 interrupt function
|
||||
- Remove warnings caused by upgrading lvgl
|
||||
|
||||
## (10.12.2020)
|
||||
- Added DRV2605 enable for V2
|
||||
@@ -426,7 +426,11 @@ public:
|
||||
#ifdef LILYGO_WATCH_DRV2605
|
||||
void enableDrv2650(bool en = true)
|
||||
{
|
||||
#ifdef LILYGO_WATCH_2020_V2
|
||||
power->setGPIOMode(AXP_GPIO_0, en ? AXP_IO_OUTPUT_HIGH_MODE : AXP_IO_OUTPUT_LOW_MODE);
|
||||
#else
|
||||
power->setPowerOutPut(AXP202_EXTEN, en);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user