mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-09 22:52:47 -04:00
Add Heltec Capsule Sensor V3 to source code
This commit is contained in:
1 parent
b09cee118c
commit
5b1d3ed173
6 files changed
+78
-7
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user