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.
Diff: Selection.cpp
- 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