ferdinand loesch
/
SRF05_HelloWorld
Simple Hello World for the SRF05 library
main.cpp
- Committer:
- ferdinandl007
- Date:
- 2020-02-14
- Revision:
- 1:bbd86529ab7d
- Parent:
- 0:d87132986e8f
File content as of revision 1:bbd86529ab7d:
// Simple program to read the distance from an SRF05 using the SRF05 library #include "mbed.h" #include "SRF05.h" SRF05 srf(PA_13, PA_14); int main() { while(1) { printf("Distance = %.1f\n", srf.read()); wait(0.2); } }