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

Method isConnected

libraries/MCP23008/MCP23008.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63
64bool MCP23008::isConnected()
65{
66 _wire->beginTransmission(_address);
67 if (_wire->endTransmission() != 0)
68 {
69 _error = MCP23008_I2C_ERROR;
70 return false;
71 }
72 _error = MCP23008_OK;
73 return true;
74}
75
76
77// single pin interface

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36