Class: Switch

Switch

new Switch(pins)

switch.js, line 10
Switch module.
Name Type Description
pins Number The pins number.

Methods

on(eventName, listener)

switch.js, line 24
Listen the switch's state.
Name Type Description
eventName String The name of the event.
listener function The callback function.