mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
removing pinmode
This commit is contained in:
parent
c445bbeaf2
commit
f69efaf027
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue