4 #include "../hubolib.h"
5 #include "../hubocfg.h"
28 printf (
"Error: Initialize\n");
33 printf (
"Clearing all channels\n");
38 for (
int i=0; i<8; i++)
41 printf (
"Setting channel %d\n", i);
47 for (
int i=0; i<8; i++)
50 printf (
"Clearing channel %d\n", i);
56 printf (
"Setting all channels\n");
const char * m_sI2CDevice
bool Set_DO_Channel(int channel, bool bValue)
Requests the background thread to set one of the digital outputs to the value specified.
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...
void Uninitialize()
Releases any resources bound to the library.