SRF08 Libraray
Dependents: mbedDemoDisplay mbedDemoDisplay Roaming SRF08HelloWorld ... more
Revision 1:ba04e9cd48fc, committed 2010-08-10
- Comitter:
- chris
- Date:
- Tue Aug 10 07:42:20 2010 +0000
- Parent:
- 0:752fc2753b90
- Child:
- 2:aeec981d1d2a
- Commit message:
Changed in this revision
main.cpp | Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Aug 09 16:19:08 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -#include "mbed.h" -#include "SRF08.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); - } -}