Aufgabe 1. BusOut Programm

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
riad
Date:
Sun Jan 12 12:30:46 2020 +0000
Parent:
2:ae17974ea4a6
Commit message:
int main; Joystick

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Jan 12 12:29:59 2020 +0000
+++ b/main.cpp	Sun Jan 12 12:30:46 2020 +0000
@@ -3,6 +3,19 @@
 BusOut lb(LED1,LED2,LED3,LED4);
 DigitalIn joy(BUTTON1);
 
+void lb1 ();
+
+int main ()
+{
+    while(1)
+    {
+        if(joy)
+        {
+        lb1 ();
+        }
+        wait_ms(100);
+    }
+}
 
 void lb1 ()
 {