Module: pump

There are two pumps in the system. This module is used to switch them on and off. An event is emitted when the state of the pump changes.
Author:
  • Dave Leitch

Requires

Classes

Pump

Members


<inner, constant> OFF :number

I2C value used to switch OFF the pump.
Type:
  • number

<inner, constant> ON :number

I2C value used to switch ON the pump.
Type:
  • number

Methods


<static> getStatus()

Emit a pump event for all pumps.
Fires:
  • event:pumpEvent