Interface library for the Devantech SRF02/SRF08 ultrasonic i2c rangers. Depends on I2cRtosDriver lib!
Diff: Srf0208IFTest01.h
- Revision:
- 3:70c946ba29cc
- Parent:
- 2:dfc8b09b4e3b
--- a/Srf0208IFTest01.h Sun May 26 20:52:27 2013 +0000 +++ b/Srf0208IFTest01.h Sat Jun 01 07:40:00 2013 +0000 @@ -1,3 +1,6 @@ +// attempt to realize a triangulation using one srf08 (sender) and two srf02 (additional receivers) +// Does not work yet ... doubt that it will ever work + #include "Srf0208IF.h" #include "I2CMasterRtos.h" #include "Serial.h" @@ -10,7 +13,7 @@ Serial pc(USBTX, USBRX); -I2CMasterRtos i2c(p28, p27,400000); +I2CMasterRtos i2c(p28, p27,100000); Srf08IF mid(0xe0,i2c); Srf02IF right(0xe2,i2c);