From 4fd5c4e74f92a7c3ba69feb73dadeb71a9cbe31e Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 19 Oct 2013 17:56:49 -0700 Subject: [PATCH] Fixing the example --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d26b5b7..d20939c 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,10 @@ var cylon = require("cylon"); // Initialize the robot var robot = cylon.robot({ - connection : { name: 'arduino', adaptor: 'firmata', port: '/dev/ttyACM0' }, - device : { name: 'led', driver: 'led', pin: 13 }, + connection: { name: 'arduino', adaptor: 'firmata', port: '/dev/ttyACM0' }, + device: { name: 'led', driver: 'led', pin: 13 }, - work : function() { + work: function() { // we do our thing here every(1.second(), function() { led.toggle(); }); } @@ -37,7 +37,7 @@ robot = cylon.robot device: name: 'led', driver: 'led', pin: 13 - work : -> + work: -> # we do our thing here every 1.second(), -> led.toggle()