Browse Source

faster update of the datas

phyto 1 year 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 @@
4 4
 /* -------------------------------------------------- */
5 5
 
6 6
 #define NBVAL   4
7
-#define DELAI   10000
7
+#define DELAI   1000
8 8
 
9 9
 /* -------------------------------------------------- */
10 10
 void setup() {
@@ -19,7 +19,7 @@ void setup() {
19 19
    *  range of our temperatures.
20 20
    */
21 21
   analogReference(INTERNAL1V1); // Pour Arduino Mega2560
22
-  
22
+  Serial.print("\n\n\n\n");
23 23
   delay(1000);
24 24
   Serial.print("M running\n");
25 25
   
@@ -39,7 +39,7 @@ void updatevalues(short *ptr)
39 39
   for (pass=0; pass<NB_PASSE; pass++) {
40 40
     for (foo=0; foo<NBVAL; foo++) {
41 41
       ptr[foo] += analogRead(adc_pins[foo]);
42
-      delay(100);
42
+      delay(50);
43 43
       }
44 44
     }
45 45
     

Loading…
Cancel
Save