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.
SRF02 Class Reference
Library for the SRF02 Ultrasonic Ranger. More...
#include <SRF02.h>
Public Member Functions | |
| SRF02 (PinName sda, PinName scl, int addr) | |
| Create a SRF02 object connected to the specified I2C pins. | |
| ~SRF02 () | |
| Destroys an instance of SRD02. | |
| float | measurecm () |
| Get the current distance in centimetres. | |
| float | measurein () |
| Get the current distance in centimetres. | |
| float | measureus () |
| Get the current distance in centimetres. | |
Detailed Description
Library for the SRF02 Ultrasonic Ranger.
Definition at line 52 of file SRF02.h.
Constructor & Destructor Documentation
| SRF02 | ( | PinName | sda, |
| PinName | scl, | ||
| int | addr | ||
| ) |
Member Function Documentation
| float measurecm | ( | ) |
| float measurein | ( | ) |
Generated on Fri Jul 15 2022 19:17:58 by
1.7.2