Last active
April 26, 2018 06:50
-
-
Save drnugent/b29d43d1d06777959318 to your computer and use it in GitHub Desktop.
PubNub/Tessel Super-Simple LED Integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pubnub = require("pubnub").init({ publish_key: "demo", subscribe_key: "demo" }); | |
var tessel = require("tessel"); | |
pubnub.subscribe({ channel: "tessel-light", message: function(m) { | |
tessel.led[1].toggle(); | |
}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment