Ellis Blackford Stroud 201155309
Dependencies: mbed FATFileSystem
Diff: main.cpp
- Revision:
- 1:6179c2d67d19
- Parent:
- 0:c6ceddb241df
- Child:
- 2:81cfa8310f55
--- a/main.cpp Tue Mar 12 14:38:03 2019 +0000 +++ b/main.cpp Mon Mar 18 11:02:06 2019 +0000 @@ -5,18 +5,27 @@ Name: Ellis Blackford Stroud Username: el17ebs Student ID Number: 201155309 -Date: 12/03/19 +Date: 09/05/19 */ #include "mbed.h" +#include "Gamepad.h" +#include "N5110.h" +#include "Menu.h" -DigitalOut gpo(D0); -DigitalOut led(LED_RED); +// objects +N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); +Gamepad pad; int main() { - while (true) { - gpo = !gpo; // toggle pin - led = !led; // toggle led - wait(0.2f); - } -} \ No newline at end of file + init(); + print_welcome(); + wait(3); + print_menu(); +} + +void init() +{ + lcd.init(); + pad.init(); +}