Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SRF02 by
Revision 2:1e51f3230f2f, committed 2016-03-07
- Comitter:
- el14ml
- Date:
- Mon Mar 07 12:11:17 2016 +0000
- Parent:
- 1:8e6587d88773
- Commit message:
- potentiometer, led initial
Changed in this revision
SRF02.cpp | Show annotated file Show diff for this revision Revisions of this file |
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);