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: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址