This commit is contained in:
phyto
2019-05-13 14:26:05 +02:00
parent 0a83be585a
commit cce90eb60e
3 changed files with 39 additions and 22 deletions

View File

@@ -11,6 +11,9 @@ typedef struct {
unsigned short magic;
char tag[4];
short delai;
short temp_maxi;
short temp_mini;
short control;
} Global;
Global parametres;
@@ -20,17 +23,14 @@ void setup() {
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
Serial.print("\n");
phytocli(); /* XXX */
Serial.print("\n");
/* XXX */
/* changing the voltage reference of the ADC
* greatly increase the prcision on the limited
* range of our temperatures.
*/
analogReference(INTERNAL1V1); // Pour Arduino Mega2560
Serial.print("\n\n");
Serial.print("\n");
delay(1000);
Serial.print("M running now\n");