Valve

valve~ Valve

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

Constructor

new Valve(opt)

Arguments:
  1. opt (Object)  Pump name, I2C output & GPIO input pin numbers.