Class: 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.

new Valve(opt)

Parameters:
Name Type Description
opt Object Pump name, I2C output & GPIO input pin numbers.