watersensor

package
v0.0.0-...-d3d8c0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2017 License: MIT Imports: 3 Imported by: 0

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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL