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.
main.h
- Committer:
- Kern_EL17KJTF
- Date:
- 2019-05-05
- Revision:
- 4:59175720d8ee
- Parent:
- 3:b248dc1f3e8d
- Child:
- 5:5667c4ec3d7e
File content as of revision 4:59175720d8ee:
#ifndef MAIN_H #define MAIN_H // include the different header files #include "mbed.h" #include "N5110.h" #include "Gamepad.h" N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); Gamepad pad; // function prototypes void init(); void print_menu(); void welcome(); void arrow_location(); void arrow_select(); //----------------------- void game_engine_run(); //----------------------- void controls_run(); //----------------------- void instructions_run(); //----------------------- void options_run(); void options_brightness(); void options_contrast(); void options_volume(); //----------------------- void high_scores_run(); int menu_arrow[7][7] = { // Arrow pointer used in main menu {0,0,0,0,0,0,0,}, {0,0,0,0,1,0,0,}, {0,0,0,0,1,1,0,}, {1,1,1,1,1,1,1,}, {0,0,0,0,1,1,0,}, {0,0,0,0,1,0,0,}, {0,0,0,0,0,0,0,}, }; int menu_dk_face[36][34] = { // donkey kong face for menu { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,1,1,1,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,1,1,0,0,0,0,0 }, { 0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,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