From 33d4a16040a53c494261fece49285c0cef80f0a7 Mon Sep 17 00:00:00 2001 From: phyto Date: Wed, 22 May 2019 15:48:21 +0200 Subject: [PATCH] Zzzzz.... --- essai.c | 2 +- serial/serial.c | 2 +- simulator/rdtemp/rdtemp.ino | 22 ++++++++++++++++------ ui/terminal.c | 1 + 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/essai.c b/essai.c index 6805d0a..435be07 100644 --- a/essai.c +++ b/essai.c @@ -52,7 +52,7 @@ for (idx=0; idx 1 fprintf(stderr, "%s -> '%s'\n", __func__, where); #endif return retval; diff --git a/simulator/rdtemp/rdtemp.ino b/simulator/rdtemp/rdtemp.ino index e534604..3d24882 100644 --- a/simulator/rdtemp/rdtemp.ino +++ b/simulator/rdtemp/rdtemp.ino @@ -27,6 +27,8 @@ Global parametres; /* -------------------------------------------------- */ void setup() { +short foo; + Serial.begin(9600); pinMode(LED_BUILTIN, OUTPUT); @@ -34,6 +36,14 @@ void setup() { pinMode(RELAIS_VENTILO, OUTPUT); Serial.print("M booting\n"); + + for (foo=0; foo<10; foo++) { + digitalWrite(LED_BUILTIN, HIGH); + delay(50); + digitalWrite(LED_BUILTIN, LOW); + delay(50); + } + /* XXX */ /* changing the voltage reference of the ADC * greatly increase the prcision on the limited @@ -83,12 +93,12 @@ void sendvalues(short *ptr) { int foo; - Serial.print("T"); + prt("T"); for (foo=0; foo #include "../serial/serial.h" +#include "../viz/curses/ecran.h" #include "terminal.h" extern int verbosity;