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

Method isInGroup

libraries/PinOutGroup/PinOutGroup.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55uint8_t PinOutGroup::isInGroup(uint8_t pin)
56{
57 uint8_t count = 0;
58 for (uint8_t i = 0; i < _size; i++)
59 {
60 if (_pins[i] == pin) count++;
61 }
62 return count;
63}
64
65
66uint8_t PinOutGroup::write(uint16_t value)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36