Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- brianconnett
- Date:
- 2014-06-17
- Revision:
- 0:1171c72f5f28
- Child:
- 1:7e6087973b59
File content as of revision 0:1171c72f5f28:
//Reads input through the ADC, and transfers to PC terminal #include "mbed.h" Serial pc(USBTX, USBRX); AnalogIn Ain(p20); float ADCdata; int main() { pc.printf("ADC Data Values... \n\r"); while (1) { ADCdata=Ain; pc.printf("%f \n\r",ADCdata); wait (0.5); } }