5 #include "../hubolib.h"
6 #include "../hubocfg.h"
31 printf (
"Error: Initialize\n");
36 printf (
"Clearing all channels, then setting channels 1, 2 and 3.\n");
43 unsigned char digitalOutputs = 0;
45 assert (digitalOutputs == 0x07);
49 unsigned char currentDigitalOutputs = 0;
53 printf (
"Hardware outputs are 0x%02X\n", currentDigitalOutputs);
54 }
while (currentDigitalOutputs != digitalOutputs);
const char * m_sI2CDevice
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 Get_DO_Channels(unsigned char &value)
Retrieves the requested digital output value from the output buffer.
void Uninitialize()
Releases any resources bound to the library.
bool Readback_DO_Channels(unsigned char &value)
Reads back the digital output latchs of the IO expander.