Library for the SRF02 ultrasonic rangefinder
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