removing pinmode

This commit is contained in:
JQ
2025-05-30 22:26:29 -07:00
parent c445bbeaf2
commit f69efaf027

View File

@@ -13,9 +13,6 @@ Button::Button(uint8_t pin, bool activeState, bool isAnalog, uint16_t analogThre
}
void Button::begin() {
if (!_isAnalog) {
pinMode(_pin, INPUT_PULLUP);
}
_currentState = readButton();
_lastState = _currentState;
}