Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ds18b20 ¶
type Ds18b20 struct { ID string // contains filtered or unexported fields }
Ds18b20 is a GPIO 1-wire temperature probe.
func NewDs18b20 ¶
func NewDs18b20(id string, options ...OptionsFunc) (*Ds18b20, error)
NewDs18b20 Create a new ds18b20 Thermometer.
func (*Ds18b20) GetTemperature ¶
ReadTemperature read the current temperature of the Thermometer.
type OptionsFunc ¶
type OptionsFunc func(*Ds18b20)
func SetDevicePath ¶
func SetDevicePath(path string) OptionsFunc
Click to show internal directories.
Click to hide internal directories.