4 #include "../hubolib.h"
5 #include "../hubocfg.h"
28 printf (
"Error: Initialize\n");
35 printf (
"Clearing all channels\n");
40 for (
int i=0; i<8; i++)
43 printf (
"Setting channel %d\n", i);
49 for (
int i=0; i<8; i++)
52 printf (
"Clearing channel %d\n", i);
58 printf (
"Setting all channels\n");
const char * m_sI2CDevice
bool Initialize()
Initializes the library.
bool Set_Slave_DO_Channel(int slaveNo, int channel, bool bValue)
Requests the background thread to set one of the digital outputs to the value specified for a given s...
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 ...