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
00001 /* 00002 ELEC2645 Embedded Systems Project 00003 School of Electronic & Electrical Engineering 00004 University of Leeds 00005 2019/20 00006 00007 Name:Yang Zhenye 00008 Username:el17zy 00009 Student ID Number:201199680 00010 Date:2020/5/11 00011 */ 00012 00013 #include "mbed.h" 00014 #include "Gamepad.h" 00015 #include "N5110.h" 00016 #include "Menu.h" 00017 00018 00019 // objects 00020 Gamepad gamepad; 00021 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); 00022 Menu _menu; 00023 00024 int main() 00025 { gamepad.init(); 00026 _menu.init(); 00027 lcd.init(); 00028 lcd.normalMode(); 00029 lcd.setBrightness(0.5); 00030 while(1) { 00031 lcd.clear(); 00032 _menu.run(lcd, gamepad); 00033 lcd.refresh(); 00034 wait(0.01); } 00035 }
Generated on Tue Jul 12 2022 18:57:15 by
1.7.2