nothing important to see

This commit is contained in:
phyto 2019-05-14 09:28:32 +02:00
parent ac89d9fe7d
commit 9ef568a677

View File

@ -4,14 +4,12 @@
*/ */
/* -------------------------------------------------- */ /* -------------------------------------------------- */
// short write_config(short num, Global *from);
/* -------------------------------------------------- */
#define NBVAL 4 #define NBVAL 4
#define DELAI 1000 #define DELAI 1000
#define RELAIS_FRIGO 42 #define RELAIS_FRIGO 42
#define RELAIS_VENTILO 40
typedef struct { typedef struct {
unsigned short magic; unsigned short magic;
@ -30,6 +28,7 @@ void setup() {
pinMode(LED_BUILTIN, OUTPUT); pinMode(LED_BUILTIN, OUTPUT);
pinMode(RELAIS_FRIGO, OUTPUT); pinMode(RELAIS_FRIGO, OUTPUT);
pinMode(RELAIS_VENTILO, OUTPUT);
Serial.print("\n"); Serial.print("\n");
/* XXX */ /* XXX */
@ -111,7 +110,7 @@ void loop() {
readlight(); foo = 0; readlight(); foo = 0;
} }
/* check for CLI request */ /* check for external request */
if (Serial.available()) { if (Serial.available()) {
key = Serial.read(); key = Serial.read();
switch (key) { switch (key) {
@ -131,6 +130,8 @@ void loop() {
} }
} }
delay(DELAI); delay(DELAI);
/* ETERNEL LOOP HERE */
} }
/* -------------------------------------------------- */ /* -------------------------------------------------- */