FRDM-K64 ADC demo

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
APanecatl
Date:
Wed Jul 09 19:29:37 2014 +0000
Commit message:
rev 1.0

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	Wed Jul 09 19:29:37 2014 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+AnalogIn AnIn(A0);
+DigitalOut led(LED1);
+
+Serial pc(USBTX,USBRX);
+
+float x; 
+int main() 
+{
+    pc.printf(" ADC demo code\r\n");
+    while (1)
+    {
+    x=AnIn.read();
+    pc.printf("ADC0_Ch12=(%d)\r\n", x);
+    wait(.2);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jul 09 19:29:37 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721
\ No newline at end of file