Using Plugins With the Humble_rpi Gem

require 'humble_rpi'
require 'humble_rpi-plugin-led'

hrpi = device_name: 'kit', sps_address: 'sps', \
                                     plugins: {Led: {pins: %w(5 6 17)}}

The above example starts the Humble_rpi gem with the Led plugin which has 3 LEDs configured. It's subscribed to the topic kit/output/# SimplePubSub (SPS) broker on address 'sps'. When the SPS message kit/output/led: 1 on is published it sets the LED on GPIO 6 to high.