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: main.cpp
- Revision:
- 0:26de4389d8db
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Apr 17 14:06:50 2022 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +AnalogIn ain(p20); +Serial pc(USBTX, USBRX); + +int main(){ + float a; + while(1){ + a = ain * 100.0f; + pc.printf("%f\r\n",a); + } +} \ No newline at end of file