Augusto Panecatl
/
FRDM-K64_ADC
FRDM-K64 ADC demo
main.cpp
- Committer:
- APanecatl
- Date:
- 2014-07-09
- Revision:
- 0:0a57f4a13cda
File content as of revision 0:0a57f4a13cda:
#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); } }