Arduino-Library-Button
Arduino-Library-Button copied to clipboard
Boolean flag negation with ternary operator instead of ! operator
Please don't write like this: if (_justPressed) { _pToggleFlag ? _pToggleFlag=false : _pToggleFlag=true; } Write like this: _pToggleFlag = !_pToggleFlag;
It is much faster and much more readable.
Or pull https://github.com/carlynorama/Arduino-Library-Button/pull/3