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.

Constructor

new Pump(name, requestPin)

Arguments:
  1. name (string)  Pump name
  2. requestPin (number)  I2C pin number