mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
added button support
This commit is contained in:
parent
8b4662a40a
commit
1299b6f813
2 changed files with 3 additions and 0 deletions
|
|
@ -37,6 +37,8 @@ public:
|
|||
power.setALDO2Voltage(3300);
|
||||
power.enableALDO2();
|
||||
|
||||
pinMode(38,INPUT_PULLUP);
|
||||
|
||||
esp_reset_reason_t reason = esp_reset_reason();
|
||||
if (reason == ESP_RST_DEEPSLEEP) {
|
||||
long wakeup_source = esp_sleep_get_ext1_wakeup_status();
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ build_flags =
|
|||
-D P_LORA_TX_LED=4
|
||||
-D PIN_BOARD_SDA=21
|
||||
-D PIN_BOARD_SCL=22
|
||||
-D PIN_USER_BTN=38
|
||||
build_src_filter = ${esp32_base.build_src_filter}
|
||||
board_build.partitions = min_spiffs.csv ; get around 4mb flash limit
|
||||
lib_deps =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue