Skip to content

Instantly share code, notes, and snippets.

@drnugent
Last active April 26, 2018 06:50
Show Gist options
  • Save drnugent/b29d43d1d06777959318 to your computer and use it in GitHub Desktop.
Save drnugent/b29d43d1d06777959318 to your computer and use it in GitHub Desktop.
PubNub/Tessel Super-Simple LED Integration
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