blink blink

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
riad
Date:
Sat Dec 07 14:32:00 2019 +0000
Commit message:
blink

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	Sat Dec 07 14:32:00 2019 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+BusOut led(D2,D3,D6,D9,D11,D12,A6,D13);
+
+int main() {
+    while (1) {
+        led = 85;
+        wait_ms(500);
+        led = 170;
+        wait_ms(500);
+        
+//01010101     170    1   2   4   8   16  32  64  128
+//10101010      85    1   2   4   8   16  32  64  128
+    
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Dec 07 14:32:00 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file