fix sleep btn

This commit is contained in:
lewis 2019-12-25 16:43:48 +08:00
commit 1ed30cb3ff
2 changed files with 3 additions and 1 deletions

View file

@ -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();
});
}

View file

@ -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()