Browse Source

nothing important to see

phyto 6 months ago
parent
commit
9ef568a677
1 changed files with 9 additions and 8 deletions
  1. 9
    8
      simulator/rdtemp/rdtemp.ino

+ 9
- 8
simulator/rdtemp/rdtemp.ino View File

@@ -4,14 +4,12 @@
4 4
  */
5 5
 /* -------------------------------------------------- */
6 6
 
7
-// short write_config(short num, Global *from);
8
-
9
-/* -------------------------------------------------- */
10
-
11 7
 #define NBVAL   4
12 8
 #define DELAI   1000
13 9
 
14
-#define RELAIS_FRIGO  42
10
+#define RELAIS_FRIGO    42
11
+#define RELAIS_VENTILO  40
12
+
15 13
 
16 14
 typedef struct {
17 15
   unsigned short    magic;
@@ -30,7 +28,8 @@ void setup() {
30 28
   pinMode(LED_BUILTIN, OUTPUT);
31 29
  
32 30
   pinMode(RELAIS_FRIGO, OUTPUT);
33
- 
31
+  pinMode(RELAIS_VENTILO, OUTPUT);
32
+  
34 33
   Serial.print("\n");  
35 34
   /* XXX */
36 35
   /*  changing the voltage reference of the ADC
@@ -111,7 +110,7 @@ void loop() {
111 110
     readlight();    foo = 0;
112 111
     }
113 112
 
114
- /* check for CLI request */
113
+ /* check for external request */
115 114
  if (Serial.available()) {
116 115
     key = Serial.read();
117 116
     switch (key) {
@@ -130,7 +129,9 @@ void loop() {
130 129
           break;          
131 130
       }
132 131
  } 
133
-  delay(DELAI);
132
+ delay(DELAI);
133
+
134
+ /* ETERNEL LOOP HERE */
134 135
 }
135 136
 
136 137
 /* -------------------------------------------------- */

Loading…
Cancel
Save