2 #include "simpletools.h" 4 static int pinCh0 = 26, pinCh1 = 27;
5 float abvolts_scale[2];
14 float vA = ad_volts(0);
15 float vB = ad_volts(1);
19 if( (vA > 3.1 && vA < 3.5 && vB > 3.1 && vB < 3.5))
21 for(
int i = 0; i < 39; i++)
32 int addr = _abvolts_EE_start_;
34 ee_putStr(
"abvolts", 8, addr);
37 ee_putFloat32(vA, addr);
40 ee_putFloat32(vB, addr);
49 putStr(
"Ch0 scalar = ");
51 putStr(
"\nCh1 scalar = ");
56 abvolts_scale[0] = vA;
57 abvolts_scale[1] = vB;
61 putStr(
"Error! Something went wrong. Check your circuit and power source.");