Add Heltec Capsule Sensor V3 to source code

This commit is contained in:
Heltec-Aaron-Lee committed 2024-06-12 20:21:26 +08:00
1 parent b09cee118c
commit 5b1d3ed173
6 files changed
+78 -7

No files matched your search

+4
View File
@@ -41,7 +41,11 @@ ButtonThread::ButtonThread() : OSThread("Button")
}
#elif defined(BUTTON_PIN)
int pin = config.device.button_gpio ? config.device.button_gpio : BUTTON_PIN; // Resolved button pin
#if defined(HELTEC_CAPSULE_SENSOR_V3)
this->userButton = OneButton(pin, false, false);
#else
this->userButton = OneButton(pin, true, true);
#endif
LOG_DEBUG("Using GPIO%02d for button\n", pin);
#endif