You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
496 B
Arduino
28 lines
496 B
Arduino
2 years ago
|
#include "Sc_AnalogIn.h" // Differential analog input collector
|
||
|
|
||
|
int Size_AI = 8;
|
||
|
int AI_VALUES[] = {
|
||
|
0, 0, 0, 0, 0, 0, 0, 0
|
||
|
};
|
||
|
|
||
|
void setup() {
|
||
|
// put your setup code here, to run once:
|
||
|
Serial.begin(9600);
|
||
|
Serial.println("Start!");
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
// put your main code here, to run repeatedly:
|
||
|
int i = 0;
|
||
|
|
||
|
AnalogIn(AI_VALUES, Size_AI);
|
||
|
|
||
|
for (i = 0; i < 8; i++) {
|
||
|
Serial.print(AI_VALUES[i]);
|
||
|
// Serial.println(AnalogTest(3));
|
||
|
|
||
|
}
|
||
|
Serial.println("");
|
||
|
delay(1000);
|
||
|
}
|