added button support
This commit is contained in:
@@ -37,6 +37,8 @@ public:
|
|||||||
power.setALDO2Voltage(3300);
|
power.setALDO2Voltage(3300);
|
||||||
power.enableALDO2();
|
power.enableALDO2();
|
||||||
|
|
||||||
|
pinMode(38,INPUT_PULLUP);
|
||||||
|
|
||||||
esp_reset_reason_t reason = esp_reset_reason();
|
esp_reset_reason_t reason = esp_reset_reason();
|
||||||
if (reason == ESP_RST_DEEPSLEEP) {
|
if (reason == ESP_RST_DEEPSLEEP) {
|
||||||
long wakeup_source = esp_sleep_get_ext1_wakeup_status();
|
long wakeup_source = esp_sleep_get_ext1_wakeup_status();
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ build_flags =
|
|||||||
-D P_LORA_TX_LED=4
|
-D P_LORA_TX_LED=4
|
||||||
-D PIN_BOARD_SDA=21
|
-D PIN_BOARD_SDA=21
|
||||||
-D PIN_BOARD_SCL=22
|
-D PIN_BOARD_SCL=22
|
||||||
|
-D PIN_USER_BTN=38
|
||||||
build_src_filter = ${esp32_base.build_src_filter}
|
build_src_filter = ${esp32_base.build_src_filter}
|
||||||
board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
|
board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
|||||||
Reference in New Issue
Block a user