Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Johnny-Five compared to Cylon: Hello
Cylon = require '../..'
Cylon.robot
work: ->
every 1.second(), ->
Logger.info("Hello, human!")
after 10.seconds(), ->
Logger.info "Impressive."
.start()
var Cylon = require('../..');
Cylon.robot({
work: function() {
every(1..second(), function() { Logger.info("Hello, human!"); });
after(10..seconds(), function() { Logger.info("Impressive."); });
}
}).start();
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