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.
main.cpp
- Committer:
- JPP
- Date:
- 2017-11-21
- Revision:
- 3:1d0d5b8471a3
- Parent:
- 2:c0afe99e4314
File content as of revision 3:1d0d5b8471a3:
#include "mbed.h"
Serial pc(USBTX, USBRX);
DigitalOut myled(LED1);
AnalogIn Ain(p20);
int main() {
float ADCdata;
while(1) {
myled = 1;
wait(1);
myled = 0;
wait(1);
ACDdata=Ain.read();
pc.print("%f\t%fV \n\r", ADCdata, ABCdata*3.3);
}
}