Module: heater

Modulate Kettle heating element to control the power.

Every time the state changes an event is emitted to all listeners.

Author:
  • Dave Leitch

Requires

  • module:brewdefs.js
  • module:brewlog.js
  • module:pwm.js
  • module:i2c.js*

Members


<inner, constant> HEATER_OFF :number

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

<inner, constant> HEATER_ON :number

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

Methods


<inner> switchOff()

Turn off the heater.
Fires:
  • event:heatEvent

<inner> switchOn()

Turn on the heater.
Fires:
  • event:heatEvent