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@42:ee13e1d103d8, 2019-05-08 (annotated)
- Committer:
- ikenna1
- Date:
- Wed May 08 11:18:40 2019 +0000
- Revision:
- 42:ee13e1d103d8
- Parent:
- 30:711d722f3cef
Change the way Lcd and Gamepad libraries are accessed for ease of documentation
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 | 42:ee13e1d103d8 | 15 | void init(int ycursor,N5110 *lcd, Gamepad *pad); |
ikenna1 | 42:ee13e1d103d8 | 16 | void title(int shipno); |
ikenna1 | 10:c33d7593a275 | 17 | void update(Direction d); |
ikenna1 | 13:e114d362186d | 18 | int get_ycursor(); |
ikenna1 | 13:e114d362186d | 19 | int get_xcursor(); |
ikenna1 | 42:ee13e1d103d8 | 20 | void disp_ships(); |
ikenna1 | 9:241a1a7d8527 | 21 | //void Menu::scroll(N5110 &lcd, Direction d); |
ikenna1 | 9:241a1a7d8527 | 22 | |
ikenna1 | 9:241a1a7d8527 | 23 | private: |
ikenna1 | 12:47578eb9ea73 | 24 | int _xcursor; |
ikenna1 | 9:241a1a7d8527 | 25 | int _ycursor; |
ikenna1 | 42:ee13e1d103d8 | 26 | Gamepad *_pad; |
ikenna1 | 42:ee13e1d103d8 | 27 | N5110 *_lcd; |
ikenna1 | 12:47578eb9ea73 | 28 | |
ikenna1 | 9:241a1a7d8527 | 29 | |
ikenna1 | 9:241a1a7d8527 | 30 | }; |
ikenna1 | 9:241a1a7d8527 | 31 | #endif |