laushift

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mirzamesic
Date:
Mon Dec 02 18:27:25 2019 +0000
Commit message:
laufshift

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 02 18:27:25 2019 +0000
@@ -0,0 +1,26 @@
+
+#include "mbed.h"
+ 
+BusOut myleds(LED1, LED2, LED3, LED4);
+ 
+int main() {
+    
+
+    
+    while(1) {
+        
+        
+        uint8_t i=0b00010000;
+         
+         for(int a=0;a<5;a++)
+         {
+            i=i>>1;
+            myleds = i;
+            wait(0.25);
+         }
+            
+            
+        
+      
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 02 18:27:25 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file