4 #include "../hubolib.h"
5 #include "../hubocfg.h"
18 int main(
int argc,
char* argv[])
22 printf (
"Usage: \n LoadTest.out <digital outputs to activate>\n example: LoadTest.out 5 // this will set channels 0 and 2\n");
27 if (sscanf (argv[1],
"%d", &outValue) != 1)
29 printf (
"Digital output could not be determined!\n");
33 printf (
"Setting digital outputs to 0x%02X.\n", outValue);
34 printf (
"Hit Ctrl+C to terminate.\n");
44 printf (
"Error: Initialize\n");
const char * m_sI2CDevice
int main(int argc, char *argv[])
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.