jiang wang
/
SRF08HelloWorld
yuiyui
Fork of SRF08HelloWorld by
main.cpp
- Committer:
- wj8000000
- Date:
- 2015-02-13
- Revision:
- 1:1228beb2d7fe
- Parent:
- 0:b757a3e4f64e
File content as of revision 1:1228beb2d7fe:
#include "mbed.h" SRF08 srf08(p9, p10, 0xE0); // Define SDA, SCL pin and I2C address int main() { while (1) { printf("Measured range : %.2f cm\n",srf08.read()); wait(0.1); } }