Augusto Panecatl
/
FRDM-K64_ADC
FRDM-K64 ADC demo
Revision 0:0a57f4a13cda, committed 2014-07-09
- 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 |
diff -r 000000000000 -r 0a57f4a13cda main.cpp --- /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
diff -r 000000000000 -r 0a57f4a13cda mbed.bld --- /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