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
Diff: main.cpp
- Revision:
- 0:29e1ab0b15a8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Sep 10 08:16:24 2016 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +DigitalOut a1(PB_6); + + +AnalogIn b1(PC_3); + +int main() { + a1=1; + + while(1){ + double data1=b1; + + printf("b1=%f\r\n",data1); + wait(0.5); + } + } \ No newline at end of file