sei ka / Mbed 2 deprecated test5

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
hx6730
Date:
Mon May 16 06:12:47 2016 +0000
Commit message:
????

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
diff -r 000000000000 -r d12d1fa56e10 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon May 16 06:12:47 2016 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+DigitalIn p(PTB2);
+BusOut led1(PTE5,PTE4,PTE3,PTE2,PTB11,PTB10,PTB9,PTB8);
+BusOut mo(PTA1,PTA2);
+
+int main() {
+    while(1) {
+        if(p == 0){
+        led1 = 0x01;
+        mo = 0x01;}
+        else if(p == 1){
+        led1 = 0x80;
+        mo = 0x02;}
+    }
+}
diff -r 000000000000 -r d12d1fa56e10 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon May 16 06:12:47 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7c328cabac7e
\ No newline at end of file