| 5 | } |
| 6 | |
| 7 | void Button::begin() { |
| 8 | pinMode(_pin, INPUT); |
| 9 | |
| 10 | // prevent multiattachment of the interrupt |
| 11 | detachInterrupt(digitalPinToInterrupt(_pin)); |
| 12 | attachInterrupt(digitalPinToInterrupt(_pin), _earable_btn_read_state, CHANGE); |
| 13 | } |
| 14 | |
| 15 | |
| 16 | void Button::end() { |
nothing calls this directly
no outgoing calls
no test coverage detected