none

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
naray23
Date:
Fri Jul 07 07:42:05 2017 +0000
Commit message:
none

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 8ddb825121c0 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 07 07:42:05 2017 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+ 
+AnalogIn input(A0);
+AnalogIn ldr(A1);
+
+Serial pc(USBTX,USBRX);
+int main() {
+    
+    while(1)
+    {
+      pc.printf("$%d %d;",input.read_u16(),ldr.read_u16());
+      wait(1);
+    }
+}   
diff -r 000000000000 -r 8ddb825121c0 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jul 07 07:42:05 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/cbbeb26dbd92
\ No newline at end of file