Add Heltec Capsule Sensor V3 to source code

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

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