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

Method getIndex

libraries/PinOutGroup/PinOutGroup.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132
133uint8_t PinOutGroup::getIndex(uint8_t pin)
134{
135 for (uint8_t i = 0; i < _size; i++)
136 {
137 if (_pins[i] == pin) return i;
138 }
139 return 0xFF;
140}
141
142
143// -- END OF FILE --

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36