4 #include "../hubolib.h"
5 #include "../hubocfg.h"
28 vector<int> slaveAddressList;
30 printf (
"No slaves found - call Initialize() first.\n");
37 for (
unsigned int i=0; i<slaveAddressList.size(); i++)
38 printf (
"Found slave address 0x%02X.\n", slaveAddressList[i]);
41 printf (
"No slaves found - call Initialize() first.\n");
const char * m_sI2CDevice
bool Initialize()
Initializes the library.
void Uninitialize()
Releases any resources bound to the library.
bool GetSlaveDeviceList(std::vector< int > &slaveAddressList)
Returns the list of I2C addresses of the MCP23017 slaves.