cylon/examples/digispark_blink/blink.js

18 lines
256 B
JavaScript

"use strict";
var Cylon = require("../..");
Cylon.robot({
connections: {
digispark: { adaptor: "digispark" }
},
devices: {
led: { driver: "led", pin: 1 }
},
work: function(my) {
every((1).second(), my.led.toggle);
}
}).start();