automotive simulation thingy
Dependencies: N5110 ShiftReg Tone mbed
Fork of 1620_Project_Template by
Diff: Main/main.cpp
- Revision:
- 2:e7e39d27b11f
- Parent:
- 0:d5312060f649
--- a/Main/main.cpp Mon Mar 13 07:01:51 2017 +0000 +++ b/Main/main.cpp Thu Jun 29 22:41:30 2017 +0000 @@ -6,6 +6,8 @@ DigitalIn button_c(p27); DigitalIn button_d(p26); + + N5110 lcd(p8,p9,p10,p11,p13,p21); BusOut leds(LED4,LED3,LED2,LED1); @@ -24,6 +26,7 @@ Tone speaker(p18); ShiftReg shift; + int main() { init(); // initialise peripherals @@ -50,7 +53,7 @@ // delay to prevent multiple button presses being detected wait_ms(250); - } + }lcd.clear(); } void init() @@ -91,8 +94,9 @@ lcd.printString(" Automotive",0,0); lcd.printString(" Electronics",0,1); lcd.printString(" Simulator",0,2); - lcd.printString("Craig A. Evans",0,4); - lcd.printString(" 0123456789",0,5); + lcd.printString(" Al Husien",0,3); + lcd.printString(" Dabashi",0,4); + lcd.printString(" 201042563",0,5); lcd.refresh(); wait(5.0); } \ No newline at end of file