Back to godoc.org

Package watersensor

v0.0.0-...-d3d8c0c
Latest Go to latest

The latest major version is .

Published: May 8, 2017 | License: MIT | Module: github.com/kidoman/embd

Overview

Package watersensor allows interfacing with the water sensor.

Index

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