faster update of the datas
This commit is contained in:
parent
5a295023c7
commit
f7db16548d
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user