Back to

Package watersensor

Latest Go to latest

The latest major version is .

Published: May 8, 2017 | License: MIT | Module:


Package watersensor allows interfacing with the water sensor.


type WaterSensor

type WaterSensor struct {
	Pin embd.DigitalPin
	// contains filtered or unexported fields

WaterSensor represents a water sensor.

func New

func New(pin embd.DigitalPin) *WaterSensor

New creates a new WaterSensor struct

func (*WaterSensor) IsWet

func (d *WaterSensor) IsWet() (bool, error)

IsWet determines if there is water present on the sensor

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier