MCPcopy Create free account
hub / github.com/bxparks/AceButton / readButton

Method readButton

src/ace_button/EncodedButtonConfig.cpp:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44int EncodedButtonConfig::readButton(uint8_t pin) {
45 uint8_t virtualPin = getVirtualPin();
46 return (virtualPin == pin) ? mPressedState : (mPressedState ^ 0x1);
47}
48
49void EncodedButtonConfig::checkButtons() const {
50 uint8_t virtualPin = getVirtualPin();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected