Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ isInGroup
Method
isInGroup
libraries/PinInGroup/PinInGroup.cpp:51–59 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
50
51
uint8_t PinInGroup::isInGroup(uint8_t pin)
52
{
53
uint8_t count = 0;
54
for (uint8_t i = 0; i < _size; i++)
55
{
56
if (_pins[i] == pin) count++;
57
}
58
return count;
59
}
60
61
62
uint16_t PinInGroup::read()
Callers
1
unittest
Function · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36