diff --git a/simulator/rdtemp/rdtemp.ino b/simulator/rdtemp/rdtemp.ino index 9f2610c..6042e2f 100644 --- a/simulator/rdtemp/rdtemp.ino +++ b/simulator/rdtemp/rdtemp.ino @@ -6,8 +6,6 @@ #define NBVAL 4 #define DELAI 12000 -int values[NBVAL]; - /* -------------------------------------------------- */ void setup() { Serial.begin(9600); @@ -21,33 +19,43 @@ void setup() { analogReference(INTERNAL1V1); // Pour Arduino Mega2560 delay(1000); + Serial.print("M running\n"); } /* -------------------------------------------------- */ -void updatevalues(void) +/* ================================================== */ +short adc_pins[] = { A0, A1, A2, A4 }; +/* -------------------------------------------------- */ +void updatevalues(short *ptr) { int foo; for (foo=0; foo