2014-12-14 08:19:25 +08:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var Cylon = require("../..");
|
2014-02-21 08:29:18 +08:00
|
|
|
|
|
|
|
Cylon.robot({
|
2014-11-26 08:01:31 +08:00
|
|
|
connections: {
|
2014-12-14 08:19:25 +08:00
|
|
|
digispark: { adaptor: "digispark" }
|
2014-11-26 08:01:31 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
devices: {
|
2014-12-14 08:19:25 +08:00
|
|
|
led: { driver: "led", pin: 1 }
|
2014-11-26 08:01:31 +08:00
|
|
|
},
|
2014-11-26 06:39:24 +08:00
|
|
|
|
2014-02-21 08:29:18 +08:00
|
|
|
work: function(my) {
|
2014-11-26 06:39:24 +08:00
|
|
|
every((1).second(), my.led.toggle);
|
2014-02-21 08:29:18 +08:00
|
|
|
}
|
2014-11-26 06:39:24 +08:00
|
|
|
}).start();
|