Baseline for testing

Revision:
3:8395f7ab6d3e
Parent:
1:84d263c8932d
--- a/Selection.cpp	Tue Mar 05 21:24:37 2013 +0000
+++ b/Selection.cpp	Thu Jul 25 00:42:49 2019 +0000
@@ -1,6 +1,14 @@
 #include "mbed.h"
 #include "Selection.h"
-#include "TextLCD.h"
+#include "LCD.h"
+
+Selection::Selection(Selection_Callback callback, int position, Menu *child, char* text) : 
+    callback(callback), selText(text), pos(position), childMenu(child) {}
+
 
-Selection::Selection(void (*fun)(), int position, Menu *child, char* text) : 
-    fun(fun), selText(text), pos(position), childMenu(child) {}
+
+void Selection::select() 
+{
+    printf("A->%s\n\r", selText);
+    if (callback) callback(this);
+}
\ No newline at end of file