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

OFF: number inner constant

I2C value used to switch OFF the pump.

ON: number inner constant

I2C value used to switch ON the pump.

Methods

getStatus() static

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