![]() |
MatrixMiniR4 1.1.5
Matrix Mini R4 Arduino Library API Documentation
|
Class for interfacing with a laser distance sensor. More...
#include <MiniR4LaserSensorExt.h>
Public Member Functions | |
bool | begin () |
Initializes the laser sensor. | |
uint16_t | getDistance () |
Gets the distance measured by the laser sensor. | |
Public Attributes | |
uint8_t | _ch = 0 |
TwoWire * | _pWire |
Class for interfacing with a laser distance sensor.
This class provides methods to read distance measurements from a laser sensor over I2C.
Definition at line 24 of file MiniR4LaserSensorExt.h.
bool MatrixLaser::begin | ( | ) |
Initializes the laser sensor.
Definition at line 9 of file MiniR4LaserSensorExt.cpp.
uint16_t MatrixLaser::getDistance | ( | ) |
Gets the distance measured by the laser sensor.
Definition at line 24 of file MiniR4LaserSensorExt.cpp.
uint8_t MatrixLaser::_ch = 0 |
Definition at line 40 of file MiniR4LaserSensorExt.h.
TwoWire* MatrixLaser::_pWire |
Definition at line 41 of file MiniR4LaserSensorExt.h.