Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BufferedSerial AserialIOFuncLib SSD1306 TerminalPlusV2
Fork of SerialIO by
Diff: Functions.h
- Revision:
- 41:fb612a3936fb
- Parent:
- 40:48422add4537
- Child:
- 42:8ca8ff1ab387
--- a/Functions.h Sun Jan 03 14:32:39 2016 +0000
+++ b/Functions.h Sat Jan 09 00:53:41 2016 +0000
@@ -133,16 +133,24 @@
errp=RfuncOut(func, funcnum,param);
}
- //start DA FARE!!!!!!!!!
+ //start
else if (strIn.substr(0,5)=="start") {
errp=StartfuncOut();
}
- //stop DA FARE!!!!!!!!!
+ //stop
else if (strIn.substr(0,4)=="stop") {
errp=StopfuncOut();
}
+ else if (func=="+") {
+ errp=plusOut(func,string(stringa));
+ }
+
+ else if (func=="-") {
+ errp=minusOut(func,string(stringa));
+ }
+
// comando fuori parsing
if (errp==1) {
term.forgcol(1);
@@ -151,7 +159,7 @@
ardser.printf("Bad command\n\r");
printDisp(dispType,"** Bad command ** \n\r");
}
- if (errp==0) term.readypos(); //riposiziono solo solo se a 0
+ if (errp==0) term.readypos(); //riposiziono solo solo se a 0
}
@@ -178,6 +186,10 @@
else if (func=="f") {
errp=functionIn(func, stringa);
}
+ //Parametri in ingresso
+ else if (func=="g") {
+ errp=getParamIn(func, stringa);
+ }
//start
else if (strIn.substr(0,4)=="start") {
errp=StartfuncIn();
@@ -188,7 +200,7 @@
}
//Valori funzione in input
else if (func=="v") {
- errp=valueIn(stringa);
+ errp=valueIn(stringa);
}
//writeLogInput( strIn{
@@ -216,7 +228,7 @@
menu_function[0]="Z.Z";
status=false; //accensione
- randomActivate=true;
+ randomActivate=false;
term.formatPrintf(fnzAdd.string2char(fnzAdd.addEOS("Off")),11,p16,10,1);
term.formatPrintf(fnzAdd.string2char(fnzAdd.addEOS("True")),39,p17,10,1);
