4 #include "../hubolib.h"
23 printf (
"Error: Initialize\n");
35 unsigned long adcCount;
37 for (
int i=0; i<20; i++)
42 printf (
"Channel=%d ADC count=0x%02lX Volts=%lf\n", channel, adcCount, volt);
50 printf (
"Error: Get_AI_Channel\n");
bool Wait_For_MCP3x08_Buffered_Values()
Waits until the input buffer of the MCP3x08 are initialized from the hardware.
#define MAX_MCP3x08_CHANNELS
bool Initialize()
Initializes the library.
void Uninitialize()
Releases any resources bound to the library.