View definition

func NewGrovePiezoVibrationSensorDriver

Defined in github.com/hybridgroup/gobot/platforms/gpio/grove_drivers.go

Description

NewGrovePiezoVibrationSensorDriver returns a new GrovePiezoVibrationSensorDriver with a polling interval of 10 Milliseconds given an AnalogReader, name and pin.

Optionally accepts:

time.Duration: Interval at which the AnalogSensor is polled for new information

Adds the following API Commands:

"Read" - See AnalogSensor.Read