Documentation ¶
Index ¶
Constants ¶
View Source
const (
VL53L0XAddress = 0x29
)
Constants used for VL53L0X driver
Variables ¶
View Source
var ( ErrMeasureTimeout = errors.New("vl53l0x: measure timeout") ErrOutOfBounds = errors.New("vl53l0x: measurement out of bounds") )
Errors and things
Functions ¶
This section is empty.
Types ¶
type VL530LXDriver ¶
type VL530LXDriver struct {
// contains filtered or unexported fields
}
VL530LXDriver represents the I2C driver for the VL530LX proximity chip.
func NewDriver ¶
func NewDriver(bus embd.I2CBus) *VL530LXDriver
NewDriver returns a new VL530LX driver and starts it on the provided I2C bus.
func (*VL530LXDriver) Measure ¶
func (d *VL530LXDriver) Measure() (int, error)
Measure measures the distance detected by the driver.
Click to show internal directories.
Click to hide internal directories.