Baseline for testing
Selection.cpp@3:8395f7ab6d3e, 2019-07-25 (annotated)
- Committer:
- foxbrianr
- Date:
- Thu Jul 25 00:42:49 2019 +0000
- Revision:
- 3:8395f7ab6d3e
- Parent:
- 1:84d263c8932d
Baseline for testing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pyeh9 | 0:577f0ec71f4c | 1 | #include "mbed.h" |
pyeh9 | 0:577f0ec71f4c | 2 | #include "Selection.h" |
foxbrianr | 3:8395f7ab6d3e | 3 | #include "LCD.h" |
foxbrianr | 3:8395f7ab6d3e | 4 | |
foxbrianr | 3:8395f7ab6d3e | 5 | Selection::Selection(Selection_Callback callback, int position, Menu *child, char* text) : |
foxbrianr | 3:8395f7ab6d3e | 6 | callback(callback), selText(text), pos(position), childMenu(child) {} |
foxbrianr | 3:8395f7ab6d3e | 7 | |
pyeh9 | 0:577f0ec71f4c | 8 | |
foxbrianr | 3:8395f7ab6d3e | 9 | |
foxbrianr | 3:8395f7ab6d3e | 10 | void Selection::select() |
foxbrianr | 3:8395f7ab6d3e | 11 | { |
foxbrianr | 3:8395f7ab6d3e | 12 | printf("A->%s\n\r", selText); |
foxbrianr | 3:8395f7ab6d3e | 13 | if (callback) callback(this); |
foxbrianr | 3:8395f7ab6d3e | 14 | } |