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,7 +28,8 @@ 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 */
/* changing the voltage reference of the ADC /* changing the voltage reference of the ADC
@ -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) {
@ -130,7 +129,9 @@ void loop() {
break; break;
} }
} }
delay(DELAI); delay(DELAI);
/* ETERNEL LOOP HERE */
} }
/* -------------------------------------------------- */ /* -------------------------------------------------- */