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
main.cpp
- Committer:
- el15as
- Date:
- 2017-05-02
- Revision:
- 7:b54323241435
- Parent:
- 6:33fd1797beb4
- Child:
- 8:c3cf8d1057bb
File content as of revision 7:b54323241435:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Player.h"
#include "GameEngine.h"
#include "Menu.h"
N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Serial pc(USBTX, USBRX); // tx, rx
Gamepad pad;
GameEngine game;
Player player;
Menu menu;
void update_screen();
int main()
{
lcd.init();
pad.init();
lcd.normalMode();
lcd.setBrightness(1);
game.init(4);
lcd.refresh();
while(1) { // loop forever
game.read_input(pad,pc);
game.update(pad, pc, lcd);
game.draw(lcd);
wait(1.0f/10); // 10 fps
}
}