Distance sensor- Embedded Systems Project
Fork of SRF02 by
Diff: SRF02.cpp
- Revision:
- 2:1e51f3230f2f
- Parent:
- 0:b729d2ce03bd
diff -r 8e6587d88773 -r 1e51f3230f2f SRF02.cpp --- a/SRF02.cpp Sun Mar 08 14:21:40 2015 +0000 +++ b/SRF02.cpp Mon Mar 07 12:11:17 2016 +0000 @@ -11,7 +11,7 @@ { i2c = new I2C(sdaPin,sclPin); // create new I2C instance and initialise i2c->frequency(400000); // I2C Fast Mode - 400kHz - leds = new BusOut(LED4,LED3,LED2,LED1); + leds = new BusOut(LED3,LED2,LED1); } @@ -47,7 +47,7 @@ void SRF02::error() { while(1) { - leds->write(15); + leds->write(7); wait(0.1); leds->write(0); wait(0.1);