MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / getIndex

Method getIndex

libraries/PinInGroup/PinInGroup.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89
90uint8_t PinInGroup::getIndex(uint8_t pin)
91{
92 for (uint8_t i = 0; i < _size; i++)
93 {
94 if (_pins[i] == pin) return i;
95 }
96 return 0xFF;
97}
98
99
100// --- END OF FILE ---

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36