Browse Source
Merge pull request #2228 from liamcottle/refactor/gat562-mesh-watch
Refactor GAT562 Mesh Watch
pull/1690/merge
Liam Cottle
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
2 additions and
4 deletions
-
variants/gat562_mesh_watch13/GAT56MeshWatch13Board.h
-
variants/gat562_mesh_watch13/target.cpp
-
variants/gat562_mesh_watch13/target.h
|
|
|
@ -35,7 +35,7 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
void powerOff() override { |
|
|
|
uint32_t button_pin = PIN_BUTTON2; |
|
|
|
uint32_t button_pin = PIN_BUTTON1; |
|
|
|
nrf_gpio_cfg_input(button_pin, NRF_GPIO_PIN_PULLUP); |
|
|
|
nrf_gpio_cfg_sense_set(button_pin, NRF_GPIO_PIN_SENSE_LOW); |
|
|
|
sd_power_system_off(); |
|
|
|
|
|
|
|
@ -11,8 +11,7 @@ GAT56MeshWatch13Board board; |
|
|
|
|
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
DISPLAY_CLASS display; |
|
|
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, false); |
|
|
|
MomentaryButton back_btn(PIN_BACK_BTN, 1000, true, false, true); |
|
|
|
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, false, true); |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,6 @@ |
|
|
|
extern DISPLAY_CLASS display; |
|
|
|
#include <helpers/ui/MomentaryButton.h> |
|
|
|
extern MomentaryButton user_btn; |
|
|
|
extern MomentaryButton back_btn; |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef PIN_VIBRATION |
|
|
|
|