Distance sensor- Embedded Systems Project

Fork of SRF02 by Craig Evans

Revision:
2:1e51f3230f2f
Parent:
0:b729d2ce03bd
--- 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);