| 10 | class ToggleButton { |
| 11 | public: |
| 12 | ToggleButton(int pin) : mPin(pin), mOn(false), mDebounceTimestamp(0), mChanged(false) { |
| 13 | pinMode(mPin, OUTPUT); |
| 14 | digitalWrite(mPin, LOW); |
| 15 | fl::delay(1); |
| 16 | } |
| 17 | |
| 18 | // true - button is pressed. |
| 19 | bool Read() { |
nothing calls this directly
no test coverage detected