Update readme
This commit is contained in:
parent
abd742df3f
commit
35cded3fcf
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue