Skip to content

Commit 00a7728

Browse files
committed
examples updated
1 parent 04a3dff commit 00a7728

File tree

15 files changed

+17
-17
lines changed

15 files changed

+17
-17
lines changed

examples/adjustable-baud.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var arduino = require('../');
33
var board = new arduino.Board({
44
debug: true,
55
baudrate: 9600
6-
});
6+
}).setup();
77

88
var led = new arduino.Led({
99
board: board,

examples/adjustable-port.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var arduino = require('../');
33
var board = new arduino.Board({
44
debug: true,
55
device: "ACM"
6-
});
6+
}).setup();
77

88
var led = new arduino.Led({
99
board: board,
@@ -12,4 +12,4 @@ var led = new arduino.Led({
1212

1313
board.on('ready', function(){
1414
led.blink();
15-
});
15+
});

examples/analogled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var arduino = require('../');
22

33
var board = new arduino.Board({
44
debug: true
5-
});
5+
}).setup();
66

77
var aled = new arduino.Led({
88
board: board,

examples/basic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
var arduino = require('../');
33

4-
var board = new arduino.Board();
4+
var board = new arduino.Board().setup();
55

66
board.on('connected', function(){
77
board.write('HELLO WORLD');

examples/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var arduino = require('../');
22

3-
var board = new arduino.Board();
3+
var board = new arduino.Board().setup();
44

55
var button = new arduino.Button({
66
board: board,

examples/combination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var arduino = require('../');
22

3-
var board = new arduino.Board();
3+
var board = new arduino.Board().setup();
44

55
var button = new arduino.Button({
66
board: board,

examples/ir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var arduino = require('../')
44

55
var board = new arduino.Board({
66
debug: true
7-
});
7+
}).setup();
88

99
var ir = new arduino.IR({
1010
board: board

examples/led.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ var arduino = require('../');
22

33
var board = new arduino.Board({
44
debug: true
5-
});
5+
}).setup();
66

77
var led = new arduino.Led({
88
board: board,
9-
pin: "A0"
9+
pin: "13"
1010
});
1111

1212
board.on('ready', function(){

examples/piezo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var arduino = require('../');
22

33
var board = new arduino.Board({
44
debug: true
5-
});
5+
}).setup();
66

77
var piezo = new arduino.Piezo({
88
board: board

examples/ping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var arduino = require('../'),
33

44
board = new arduino.Board({
55
debug: false
6-
});
6+
}).setup();
77

88
ping = new arduino.Ping({
99
board: board,

0 commit comments

Comments
 (0)