UNPKG

piswitch

Version:

Use your Raspberry Pi to control 433 MHz RC power sockets. Inspired by RC-Switch for Arduino.

10 lines (8 loc) 262 B
var defaultConf = { pin: 17, // in BCM numbering, unless mode is 'wpi' or 'phys' protocol: 1, pulseLength: 350, // in microseconds repeats: 10, mode: 'sys' // use exported pins via sys (see wiring-pi) }; exports.defaults = defaultConf;