Browse Source

added button support

pull/127/head
James Hall 1 year ago
parent
commit
1299b6f813
  1. 2
      src/helpers/TBeamBoard.h
  2. 1
      variants/lilygo_tbeam/platformio.ini

2
src/helpers/TBeamBoard.h

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

1
variants/lilygo_tbeam/platformio.ini

@ -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…
Cancel
Save