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
Fork of Infra-RedSeonsor by
main.cpp
- Committer:
- ponpoko1939
- Date:
- 2018-04-04
- Revision:
- 0:b40d3d1793b1
- Child:
- 1:9d0c57c475ce
File content as of revision 0:b40d3d1793b1:
#include "mbed.h" Serial pc(USBTX,USBRX); AnalogIn ain(p20); double distance; int main() { while(1){ distance = ain.read(); pc.printf("Distance:%f\n\r",distance); wait(0.5); } }