From c5156373c228818389fa68704bd6230221195b45 Mon Sep 17 00:00:00 2001 From: Egor Date: Fri, 27 Sep 2024 12:03:09 -0700 Subject: [PATCH] buzzer pin button pin --- include/LiLyGo.h | 4 ++-- include/global_config.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/LiLyGo.h b/include/LiLyGo.h index 3c0c262..0cc28df 100644 --- a/include/LiLyGo.h +++ b/include/LiLyGo.h @@ -35,8 +35,6 @@ SX1262 radio = new Module(RADIO_CS_PIN, RADIO_DIO1_PIN, RADIO_RST_PIN, RADIO_BUS #endif // end ARDUINO_heltec_wifi_32_lora_V3 #endif // end HELTEC_NO_RADIO_INSTANCE -void heltec_loop() {} - void heltec_led(int led) {} void heltec_deep_sleep() {} @@ -88,6 +86,8 @@ Print &both = Serial; #include "HotButton.h" HotButton button(BUTTON); +void heltec_loop() { button.update(); } + // This file contains a binary patch for the SX1262 #include "modules/SX126x/patches/SX126x_patch_scan.h" diff --git a/include/global_config.h b/include/global_config.h index f8205e6..1073b4d 100644 --- a/include/global_config.h +++ b/include/global_config.h @@ -22,6 +22,10 @@ #define BUZZER_PIN 41 +#ifdef LILYGO +#define BUZZER_PIN 45 +#endif + // REB trigger PIN #define REB_PIN 42