vl53l0x

package module
v0.0.0-...-e6ca0aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2017 License: MIT Imports: 3 Imported by: 0

README

VL53L0X

For use with embd

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL