faster update of the datas

Este commit está contenido en:
phyto 2019-04-12 16:10:56 +02:00
padre 5a295023c7
commit f7db16548d
Se han modificado 1 ficheros con 3 adiciones y 3 borrados

Ver fichero

@ -4,7 +4,7 @@
/* -------------------------------------------------- */
#define NBVAL 4
#define DELAI 10000
#define DELAI 1000
/* -------------------------------------------------- */
void setup() {
@ -19,7 +19,7 @@ void setup() {
* range of our temperatures.
*/
analogReference(INTERNAL1V1); // Pour Arduino Mega2560
Serial.print("\n\n\n\n");
delay(1000);
Serial.print("M running\n");
@ -39,7 +39,7 @@ void updatevalues(short *ptr)
for (pass=0; pass<NB_PASSE; pass++) {
for (foo=0; foo<NBVAL; foo++) {
ptr[foo] += analogRead(adc_pins[foo]);
delay(100);
delay(50);
}
}