library to modify and read program variable in runtime from a serial console. You can reset as well the mbed from the console without pushing buttons. Handy for debugging from the online compiler as you can change the behavior of the program without need to recompile each time.

Revision:
4:4be2eaf872df
Parent:
2:a59207652720
Child:
8:934ec53fe2c0
--- a/VarItems.cpp	Mon Aug 25 11:07:49 2014 +0000
+++ b/VarItems.cpp	Mon Aug 25 12:39:23 2014 +0000
@@ -2,8 +2,9 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include "mbed.h"
 
-
+extern Serial pc;
 
 #define DMP_SZ 100
 
@@ -27,6 +28,8 @@
     char * Values;
     unsigned int Count=0;
 
+ //   pc.printf(" Set val:%s \n",Val);
+    
     Values=strtok(Val,",");
     if(Values) {
         do {