4 #include "../hubolib.h"
5 #include "../hubocfg.h"
38 printf (
"Error: Initialize\n");
51 for (
int i=0; i<10; i++)
54 printf (
"Setting all channels\n");
60 printf (
"Clearing all channels\n");
const char * m_sI2CDevice
unsigned short m_MCP23017SlaveCycleTickDivider
bool Initialize()
Initializes the library.
bool Set_DO_Channels(unsigned char value)
Requests the background thread to update all 8 bits of the digital output to the value specified...
bool Set_Cycle_Time(long cycleTime)
Sets the backgrounds threads polling interval in ms.
void Uninitialize()
Releases any resources bound to the library.
bool Set_Slave_DO_Channels(int slaveNo, unsigned char value)
Requests the background thread to update all 8 bits of the digital output to the value specified for ...