fix sleep btn
This commit is contained in:
parent
5a2ba43b7f
commit
1ed30cb3ff
2 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ void button_init()
|
|||
}
|
||||
|
||||
delay(20);
|
||||
esp_sleep_enable_ext1_wakeup(GPIO_SEL_38, ESP_EXT1_WAKEUP_ALL_LOW);
|
||||
esp_sleep_enable_ext1_wakeup(BUTTON_PIN_MASK, ESP_EXT1_WAKEUP_ALL_LOW);
|
||||
esp_deep_sleep_start();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,10 +47,12 @@
|
|||
#define GPS_RX_PIN 12
|
||||
#define GPS_TX_PIN 15
|
||||
#define BUTTON_PIN 39
|
||||
#define BUTTON_PIN_MASK GPIO_SEL_39
|
||||
#elif defined(T_BEAM_V10)
|
||||
#define GPS_RX_PIN 34
|
||||
#define GPS_TX_PIN 12
|
||||
#define BUTTON_PIN 38
|
||||
#define BUTTON_PIN_MASK GPIO_SEL_38
|
||||
#endif
|
||||
#else
|
||||
UBLOX_GPS_OBJECT()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue