#include <i2c_adc_ads7828.h>
void setup()
{
Serial.begin(19200);
}
void loop()
{
uint8_t a, ch;
for (a = 1; a <= 2; a++)
{
for (ch = 0; ch < 8; ch++)
{
}
}
Serial.print("\n");
Serial.print("\n- - - - - - - - - - - - - - - - - - - - \n");
delay(1000);
}
{
Serial.print("\nAD:");
Serial.print(", CH:");
Serial.print(ch->
id(), DEC);
Serial.print(", v:");
Serial.print(ch->
value(), DEC);
Serial.print(", mn:");
Serial.print(", mx:");
}