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 DELAI 1000
#define RELAIS_FRIGO 42
#define RELAIS_FRIGO 42
#define RELAIS_VENTILO 40
typedef struct {
unsigned short magic;
@ -30,7 +28,8 @@ void setup() {
pinMode(LED_BUILTIN, OUTPUT);
pinMode(RELAIS_FRIGO, OUTPUT);
pinMode(RELAIS_VENTILO, OUTPUT);
Serial.print("\n");
/* XXX */
/* changing the voltage reference of the ADC
@ -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) {
@ -130,7 +129,9 @@ void loop() {
break;
}
}
delay(DELAI);
delay(DELAI);
/* ETERNEL LOOP HERE */
}
/* -------------------------------------------------- */