ss

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Peeraya
Date:
Sat Dec 05 11:36:08 2015 +0000
Commit message:
dd

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 3cd21519a66e main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Dec 05 11:36:08 2015 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+
+Serial pc(D1, D0);
+
+BusIn button(D9,D10,D11);
+BusOut led(D2,D3,D4,D5);
+
+AnalogIn temp_ss(A0);
+AnalogIn light_ss(A1);
+//D2 LSB //D5 MSB //don't know how many led
+
+int main()
+{   
+    
+    button.mode(PullUp);
+    
+    while(1) 
+    {
+        led=~button;
+        if(button==0b011){led=0b100;}
+        if(button==0b101){led=0b010;}
+        if(button==0b110){led=0b001;}
+    }
+}
diff -r 000000000000 -r 3cd21519a66e mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Dec 05 11:36:08 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file