nothing important to see
This commit is contained in:
parent
ac89d9fe7d
commit
9ef568a677
@ -4,14 +4,12 @@
|
||||
*/
|
||||
/* -------------------------------------------------- */
|
||||
|
||||
// short write_config(short num, Global *from);
|
||||
|
||||
/* -------------------------------------------------- */
|
||||
|
||||
#define NBVAL 4
|
||||
#define DELAI 1000
|
||||
|
||||
#define RELAIS_FRIGO 42
|
||||
#define RELAIS_VENTILO 40
|
||||
|
||||
|
||||
typedef struct {
|
||||
unsigned short magic;
|
||||
@ -30,6 +28,7 @@ void setup() {
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
|
||||
pinMode(RELAIS_FRIGO, OUTPUT);
|
||||
pinMode(RELAIS_VENTILO, OUTPUT);
|
||||
|
||||
Serial.print("\n");
|
||||
/* XXX */
|
||||
@ -111,7 +110,7 @@ void loop() {
|
||||
readlight(); foo = 0;
|
||||
}
|
||||
|
||||
/* check for CLI request */
|
||||
/* check for external request */
|
||||
if (Serial.available()) {
|
||||
key = Serial.read();
|
||||
switch (key) {
|
||||
@ -131,6 +130,8 @@ void loop() {
|
||||
}
|
||||
}
|
||||
delay(DELAI);
|
||||
|
||||
/* ETERNEL LOOP HERE */
|
||||
}
|
||||
|
||||
/* -------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user