CA 2.5 Lab1 modified

Dependencies:   mbed mbed-rtos C12832_lcd LCD_fonts

Files at this revision

API Documentation at this revision

Comitter:
vmg
Date:
Mon Jul 27 11:03:02 2020 +0000
Parent:
4:32dafaf166e5
Commit message:
CA 2.5 Lab1

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 32dafaf166e5 -r b416b7c917ff main.cpp
--- a/main.cpp	Sun Jul 26 21:03:38 2020 +0000
+++ b/main.cpp	Mon Jul 27 11:03:02 2020 +0000
@@ -114,12 +114,16 @@
         LCD.printf("contrast : %d",j);
         lcd_mutex.unlock();
         Thread::wait(500);   // wait 0.5s
+        
+// Thread 5
+// App Board Joystick       
 BusIn joy(p15,p12,p13,p16);
 DigitalIn fire(p14);
  
 BusOut leds(LED1,LED2,LED3,LED4);
  
-int main();{
+int main();
+{
     while(1) {
         if (fire) {
             leds=0xf;
@@ -129,7 +133,8 @@
         wait(0.1);
     }
 }
-
-    }
+}
 
 }
+
+