Documentation
¶
Overview ¶
Package watersensor allows interfacing with the water sensor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WaterSensor ¶
type WaterSensor struct { Pin embd.DigitalPin // contains filtered or unexported fields }
WaterSensor represents a water sensor.
func (*WaterSensor) IsWet ¶
func (d *WaterSensor) IsWet() (bool, error)
IsWet determines if there is water present on the sensor
Click to show internal directories.
Click to hide internal directories.