Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ read
Method
read
libraries/PCF8575/PCF8575.cpp:86–95 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
84
85
86
uint8_t PCF8575::read(const uint8_t pin)
87
{
88
if (pin > 15)
89
{
90
_error = PCF8575_PIN_ERROR;
91
return 0;
92
}
93
PCF8575::read16();
94
return (_dataIn & (1 << pin)) > 0;
95
}
96
97
98
uint16_t PCF8575::value()
Callers
8
readReg
Method · 0.45
getPWM
Method · 0.45
readReg
Method · 0.45
read16
Method · 0.45
unittest
Function · 0.45
analogRead
Method · 0.45
analogRead4
Method · 0.45
readReg
Method · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36