Console Serial IO con display OLED e seriale asincrona
Dependencies: mbed BufferedSerial AserialIOFuncLib SSD1306 TerminalPlusV2
Fork of SerialIO by
Console Serial IO con display OLED e seriale asincrona
Diff: Functions.h
- Revision:
- 42:8ca8ff1ab387
- Parent:
- 41:fb612a3936fb
diff -r fb612a3936fb -r 8ca8ff1ab387 Functions.h --- a/Functions.h Sat Jan 09 00:53:41 2016 +0000 +++ b/Functions.h Thu Jan 14 22:06:58 2016 +0000 @@ -128,9 +128,14 @@ errp=menuOut(func,string(stringa)); } - //Random Activate DA FARE!!!!!!!!! + //Random Activate else if (func=="r") { - errp=RfuncOut(func, funcnum,param); + errp=RfuncOut(func, strIn); + } + + //Random Activate + else if (strIn.substr(0,2)=="so"){ + errp=sensorOut(func, strIn); } //start @@ -230,7 +235,7 @@ status=false; //accensione randomActivate=false; term.formatPrintf(fnzAdd.string2char(fnzAdd.addEOS("Off")),11,p16,10,1); - term.formatPrintf(fnzAdd.string2char(fnzAdd.addEOS("True")),39,p17,10,1); + term.formatPrintf(fnzAdd.string2char(fnzAdd.addEOS("Off")),39,p17,10,1); term.readypos(); }