Documentation ¶
Overview ¶
Package us020 allows interfacing with the US020 ultrasonic range finder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NullThermometer = &nullThermometer{}
Functions ¶
This section is empty.
Types ¶
type Thermometer ¶
type US020 ¶
type US020 struct {
EchoPin, TriggerPin embd.DigitalPin
Thermometer Thermometer
// contains filtered or unexported fields
}
US020 represents a US020 ultrasonic range finder.
func New ¶
func New(echoPin, triggerPin embd.DigitalPin, thermometer Thermometer) *US020
New creates a new US020 interface. The bus variable controls the I2C bus used to communicate with the device.
Click to show internal directories.
Click to hide internal directories.