Skip to content

Commit

Permalink
Revert "fix typo"
Browse files Browse the repository at this point in the history
This reverts commit 384bd9e.
  • Loading branch information
Olivier Cartier committed Jan 11, 2016
1 parent 384bd9e commit f055f50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
/coverage
/node_modules/
npm-debug.log

.DS_Store

# IntelliJ project files
.idea
*.iml
out
gen
2 changes: 1 addition & 1 deletion examples/collision-detection.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ orb.connect(function() {
}, 1000);
});

orb.roll(155, 0);
orb.roll(155, 180);
});
12 changes: 5 additions & 7 deletions examples/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,23 @@ var orb = sphero(process.env.PORT);

orb.connect(function() {
// sets color to the provided r/g/b values
orb.color({ red: 255, green: 0, blue: 0 });
orb.color({ red: 255, green: 0, blue: 255 });

setTimeout(function() {
console.log("color 1");
// sets color to the provided hex value
orb.color(0x0000ff);
orb.color(0xff0000);
}, 1000);

setTimeout(function() {
console.log("color 2");
// hex numbers can also be passed in strings
orb.color("000000");
orb.color("00ff00");
}, 2000);

setTimeout(function() {
console.log("color 3");
// sets color to the provided color name
orb.sleep(0, 0, 0);
orb.disconnect(function() { console.log("bye!");});
process.exit();
orb.color("magenta");
}, 3000);

});

0 comments on commit f055f50

Please sign in to comment.