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
Menu/Menu.h@10:c33d7593a275, 2019-04-09 (annotated)
- Committer:
- ikenna1
- Date:
- Tue Apr 09 06:43:01 2019 +0000
- Revision:
- 10:c33d7593a275
- Parent:
- 9:241a1a7d8527
- Child:
- 11:73cd744ffa80
Fixed issue with menu can now select from multiple options;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ikenna1 | 9:241a1a7d8527 | 1 | #ifndef MENU_H |
ikenna1 | 9:241a1a7d8527 | 2 | #define MENU_H |
ikenna1 | 9:241a1a7d8527 | 3 | |
ikenna1 | 9:241a1a7d8527 | 4 | #include "mbed.h" |
ikenna1 | 9:241a1a7d8527 | 5 | #include "N5110.h" |
ikenna1 | 9:241a1a7d8527 | 6 | #include "Gamepad.h" |
ikenna1 | 9:241a1a7d8527 | 7 | |
ikenna1 | 9:241a1a7d8527 | 8 | class Menu |
ikenna1 | 9:241a1a7d8527 | 9 | { |
ikenna1 | 9:241a1a7d8527 | 10 | public: |
ikenna1 | 9:241a1a7d8527 | 11 | Menu(); |
ikenna1 | 9:241a1a7d8527 | 12 | ~Menu(); |
ikenna1 | 9:241a1a7d8527 | 13 | |
ikenna1 | 9:241a1a7d8527 | 14 | // Displays title screen |
ikenna1 | 9:241a1a7d8527 | 15 | void init(int ycursor); |
ikenna1 | 10:c33d7593a275 | 16 | void title(N5110 &lcd); |
ikenna1 | 10:c33d7593a275 | 17 | void update(Direction d); |
ikenna1 | 9:241a1a7d8527 | 18 | int get_cursor(); |
ikenna1 | 9:241a1a7d8527 | 19 | //void Menu::scroll(N5110 &lcd, Direction d); |
ikenna1 | 9:241a1a7d8527 | 20 | |
ikenna1 | 9:241a1a7d8527 | 21 | private: |
ikenna1 | 9:241a1a7d8527 | 22 | int _ycursor; |
ikenna1 | 9:241a1a7d8527 | 23 | |
ikenna1 | 9:241a1a7d8527 | 24 | }; |
ikenna1 | 9:241a1a7d8527 | 25 | #endif |