Browse Source

faster update of the datas

master
phyto 3 years ago
parent
commit
f7db16548d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      simulator/rdtemp/rdtemp.ino

+ 3
- 3
simulator/rdtemp/rdtemp.ino View File

@ -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…
Cancel
Save