Description

NewButtonDriver returns a new ButtonDriver with a polling interval of 10 Milliseconds given a DigitalReader, name and pin.

Optionally accepts:

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