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 FATFileSystem
Menu/Menu.cpp
- Committer:
- ellisbhastroud
- Date:
- 2019-03-18
- Revision:
- 1:6179c2d67d19
- Child:
- 2:81cfa8310f55
File content as of revision 1:6179c2d67d19:
#include "Menu.h"
// constructor
Menu::Menu()
{
}
//deconstructor
Menu::~Menu()
{
}
//public methods
void Menu::print_welcome(N5110 &lcd)
{
lcd.clear();
lcd.printString("Welcome to",0,0);
lcd.printString("GAME",0,1);
lcd.printString("by",0,2);
lcd.printString("Ellis Blackford Stroud",0,3);
lcd.refresh();
}
void Menu::print_menu(N5110 &lcd)
{
lcd.clear();
lcd.printString("Use joystick",0,0);
lcd.printString("to select",0,1);
lcd.printString("Start Game",0,2);
lcd.printString("Highscores",0,3);
lcd.printString("Settings",0,4);
lcd.refresh();
}
//private methods