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:Yao mochu 00008 Username:el17my 00009 Student ID Number:201199854 00010 Date:2020/4/28 00011 */ 00012 00013 // includes 00014 #include "mbed.h" 00015 #include "Gamepad.h" 00016 #include "N5110.h" 00017 #include "Menu.h" 00018 00019 00020 // objects 00021 Gamepad gamepad; 00022 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); 00023 Menu _menu; 00024 00025 int main() 00026 { gamepad.init(); 00027 _menu.init(); 00028 lcd.init(); 00029 lcd.normalMode(); 00030 lcd.setBrightness(0.5); 00031 while(1) { 00032 lcd.clear(); 00033 _menu.run_engine(lcd, gamepad); 00034 lcd.refresh(); 00035 wait(0.01); } 00036 }
Generated on Thu Jul 14 2022 07:54:31 by
