Ikenna Adrian Ozoemena 201157039
Dependencies: mbed
main.h@53:3fdc4486f672, 2019-05-09 (annotated)
- Committer:
- ikenna1
- Date:
- Thu May 09 14:52:52 2019 +0000
- Revision:
- 53:3fdc4486f672
- Parent:
- 52:29772e31a620
Final Submission
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ikenna1 | 52:29772e31a620 | 1 | #ifndef MAIN_H |
ikenna1 | 52:29772e31a620 | 2 | #define MAIN_H |
ikenna1 | 52:29772e31a620 | 3 | |
ikenna1 | 52:29772e31a620 | 4 | /** @file main.h |
ikenna1 | 52:29772e31a620 | 5 | * @brief Main.cpp's header file. contsins all objects, constants and prototypes used in |
ikenna1 | 52:29772e31a620 | 6 | *main.cpp |
ikenna1 | 52:29772e31a620 | 7 | */ |
ikenna1 | 52:29772e31a620 | 8 | |
ikenna1 | 43:500b8cff3715 | 9 | //______________pre-processor directives________________________________________ |
ikenna1 | 43:500b8cff3715 | 10 | #include "mbed.h" |
ikenna1 | 43:500b8cff3715 | 11 | #include "N5110.h" |
ikenna1 | 43:500b8cff3715 | 12 | #include "RosenEngine.h" |
ikenna1 | 43:500b8cff3715 | 13 | #include "Menu.h" |
ikenna1 | 43:500b8cff3715 | 14 | |
ikenna1 | 52:29772e31a620 | 15 | #ifdef WITH_TESTING |
ikenna1 | 52:29772e31a620 | 16 | # include "test.h" |
ikenna1 | 52:29772e31a620 | 17 | #endif |
ikenna1 | 52:29772e31a620 | 18 | |
ikenna1 | 43:500b8cff3715 | 19 | //_______________objects________________________________________________________ |
ikenna1 | 43:500b8cff3715 | 20 | N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); |
ikenna1 | 43:500b8cff3715 | 21 | Gamepad pad; |
ikenna1 | 43:500b8cff3715 | 22 | RosenEngine rosen; |
ikenna1 | 43:500b8cff3715 | 23 | Menu menu; |
ikenna1 | 43:500b8cff3715 | 24 | |
ikenna1 | 43:500b8cff3715 | 25 | //_______________prototypes_____________________________________________________ |
ikenna1 | 43:500b8cff3715 | 26 | void init(); |
ikenna1 | 43:500b8cff3715 | 27 | void welcome(); |
ikenna1 | 43:500b8cff3715 | 28 | void render(); |
ikenna1 | 43:500b8cff3715 | 29 | void ship_select(); |
ikenna1 | 53:3fdc4486f672 | 30 | void display_help(); |
ikenna1 | 43:500b8cff3715 | 31 | |
ikenna1 | 43:500b8cff3715 | 32 | //_______________constants______________________________________________________ |
ikenna1 | 52:29772e31a620 | 33 | int fps = 12; // Frames per second |
ikenna1 | 52:29772e31a620 | 34 | |
ikenna1 | 52:29772e31a620 | 35 | #endif |