Aufgabe 1. BusOut Programm

Dependencies:   mbed

Revision:
1:15d8fa68d1ab
Parent:
0:c8ca3cbede43
Child:
2:ae17974ea4a6
--- a/main.cpp	Sun Jan 12 12:28:51 2020 +0000
+++ b/main.cpp	Sun Jan 12 12:29:32 2020 +0000
@@ -2,3 +2,17 @@
 
 BusOut lb(LED1,LED2,LED3,LED4);
 DigitalIn joy(BUTTON1);
+
+
+void lb1 ()
+{
+    lb = 1;
+    wait_ms(100);
+    
+    for(int i = 0; i<=7; i++)
+        {
+        lb = lb << 1;
+        lb = lb | 1;
+        wait_ms(100);
+        }
+}
\ No newline at end of file