Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WiringPi/WiringPi
/ wiringPiI2CRead
Function
wiringPiI2CRead
wiringPi/wiringPiI2C.c:120–128 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
118
*/
119
120
int wiringPiI2CRead (int fd)
121
{
122
union i2c_smbus_data data ;
123
124
if (i2c_smbus_access (fd, I2C_SMBUS_READ, 0, I2C_SMBUS_BYTE, &data))
125
return -1 ;
126
else
127
return data.byte & 0xFF ;
128
}
129
130
131
/*
Callers
4
myAnalogRead
Function · 0.85
myDigitalRead
Function · 0.85
pcf8574Setup
Function · 0.85
testPin
Function · 0.85
Calls
1
i2c_smbus_access
Function · 0.85
Tested by
1
testPin
Function · 0.68