Update readme
This commit is contained in:
parent
abd742df3f
commit
35cded3fcf
|
@ -13,10 +13,10 @@ the source with `grunt coffee` first.
|
||||||
|
|
||||||
### Javascript:
|
### Javascript:
|
||||||
```javascript
|
```javascript
|
||||||
var cylon = require("cylon");
|
var Cylon = require("cylon");
|
||||||
|
|
||||||
// Initialize the robot
|
// Initialize the robot
|
||||||
var robot = cylon.robot({
|
var robot = Cylon.robot({
|
||||||
connection: { name: 'arduino', adaptor: 'firmata', port: '/dev/ttyACM0' },
|
connection: { name: 'arduino', adaptor: 'firmata', port: '/dev/ttyACM0' },
|
||||||
device: { name: 'led', driver: 'led', pin: 13 },
|
device: { name: 'led', driver: 'led', pin: 13 },
|
||||||
|
|
||||||
|
@ -32,10 +32,10 @@ robot.start();
|
||||||
|
|
||||||
### CoffeeScript:
|
### CoffeeScript:
|
||||||
```coffee-script
|
```coffee-script
|
||||||
cylon = require "cylon"
|
Cylon = require "cylon"
|
||||||
|
|
||||||
# Initialize the robot
|
# Initialize the robot
|
||||||
robot = cylon.robot
|
robot = Cylon.robot
|
||||||
connection:
|
connection:
|
||||||
name: 'arduino'
|
name: 'arduino'
|
||||||
adaptor: 'firmata'
|
adaptor: 'firmata'
|
||||||
|
|
Loading…
Reference in New Issue