MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / wiringPiI2CSetup

Function wiringPiI2CSetup

wiringPi/wiringPiI2C.c:256–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 */
255
256int wiringPiI2CSetup (const int devId)
257{
258 int rev ;
259 const char *device ;
260
261 rev = piGpioLayout () ;
262
263 if (rev == 1)
264 device = "/dev/i2c-0" ;
265 else
266 device = "/dev/i2c-1" ;
267
268 return wiringPiI2CSetupInterface (device, devId) ;
269}

Callers 12

scrollPhatSetupFunction · 0.85
pcf8591SetupFunction · 0.85
mcp3422SetupFunction · 0.85
mcp23008SetupFunction · 0.85
mcp23017SetupFunction · 0.85
pcf8574SetupFunction · 0.85
bmp180SetupFunction · 0.85
htu21dSetupFunction · 0.85
sn3218SetupFunction · 0.85
ads1115SetupFunction · 0.85
mcp23016SetupFunction · 0.85
mainFunction · 0.85

Calls 2

piGpioLayoutFunction · 0.85

Tested by 1

mainFunction · 0.68