Class: Pump

pump~ Pump

A pump can be switched on and off. It emits an event every time the state changes to/from on and off.

new Pump(name, requestPin)

Parameters:
Name Type Description
name string Pump name
requestPin number I2C pin number