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.
Diff: task1.cpp
- Revision:
- 0:70efaaf8fec6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/task1.cpp Tue Aug 06 05:06:41 2019 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +AnalogIn A(p20); +Serial pc(USBTX,USBRX); +int main() +{ + while(A) + { + float Ain= 3.3 * A; + wait(0.5); + pc.printf("%f\t",Ain); + } +} \ No newline at end of file