4 #include "../hubolib.h"
22 printf (
"Error: Initialize\n");
31 unsigned long adcCount;
33 for (
int i=0; i<20; i++)
38 printf (
"Channel=%d ADC count=0x%02lX Volts=%lf\n", channel, adcCount, volt);
42 printf (
"Error: Get_AI_Channel\n");
51 printf (
"41 oversamples for channel 0 failed.\n");
56 printf (
"40 oversamples for channel 0 and 40 oversamples for channel 1 failed.\n");
68 printf (
"30 oversamples for channel 0 and 10 oversamples for channel 1 worked.\n");
73 printf (
"Oversampling 8/12/10/10 for several channels worked.\n");
#define MAX_MCP3x08_CHANNELS
bool Initialize()
Initializes the library.
void Uninitialize()
Releases any resources bound to the library.