Update readme

This commit is contained in:
deadprogram 2013-10-23 20:07:35 -07:00
parent abd742df3f
commit 35cded3fcf
1 changed files with 4 additions and 4 deletions

View File

@ -13,10 +13,10 @@ the source with `grunt coffee` first.
### Javascript:
```javascript
var cylon = require("cylon");
var Cylon = require("cylon");
// Initialize the robot
var robot = cylon.robot({
var robot = Cylon.robot({
connection: { name: 'arduino', adaptor: 'firmata', port: '/dev/ttyACM0' },
device: { name: 'led', driver: 'led', pin: 13 },
@ -32,10 +32,10 @@ robot.start();
### CoffeeScript:
```coffee-script
cylon = require "cylon"
Cylon = require "cylon"
# Initialize the robot
robot = cylon.robot
robot = Cylon.robot
connection:
name: 'arduino'
adaptor: 'firmata'