MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / begin

Method begin

src/button_service/Button.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5}
6
7void 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
16void Button::end() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected