Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Johnny-Five compared to Cylon: Hello
Cylon = require '../..'
work: ->
every 1.second(), ->"Hello, human!")
after 10.seconds(), -> "Impressive."
var Cylon = require('../..');
work: function() {
every(1..second(), function() {"Hello, human!"); });
after(10..seconds(), function() {"Impressive."); });
var five = require("johnny-five");
var temporal = require("temporal");
(new five.Board()).on("ready", function() {
temporal.loop(1000, function() { console.log("Hello, Dave"); });
temporal.loop(10000, function() { console.log("Hello, Dave"); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment