BULME_BHEL18 / Mbed 2 deprecated 3B_Lauflicht

Dependencies:   LM75B mbed

Files at this revision

API Documentation at this revision

Comitter:
PosztosAlex
Date:
Thu Jan 21 15:19:43 2016 +0000
Commit message:

Changed in this revision

LM75B.lib Show annotated file Show diff for this revision Revisions of this file
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
diff -r 000000000000 -r f92cc048fef2 LM75B.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LM75B.lib	Thu Jan 21 15:19:43 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/neilt6/code/LM75B/#7ac462ba84ac
diff -r 000000000000 -r f92cc048fef2 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jan 21 15:19:43 2016 +0000
@@ -0,0 +1,30 @@
+#include "mbed.h"
+
+
+BusOut Led(P1_8,P1_9,P1_10,P1_11,P1_0,P1_1,P1_3,P1_4,P1_6,P1_7,P1_12,P1_13); 
+int main() 
+{ 
+    while(1) 
+    { 
+    Led = 0;
+    wait_ms(100);
+   
+    for (char j = 0b0000;j<0b1100;j++)
+    {   
+        Led = 0b1<<j | Led ;
+        
+        wait_ms(80);
+    }
+    for (char j = 0b0;j<0b1100;j++)
+    {
+        Led =  Led & 0b1111111111111 >> j ;
+        wait_ms(80);
+    }
+     for (char j = 0b0;j<0b1010;j++)
+    {           Led = Led & 0b0;
+                wait(0.07);
+                Led = 0b111111111111;
+                wait(0.25);
+                
+    }}
+    }
diff -r 000000000000 -r f92cc048fef2 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jan 21 15:19:43 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file