Skip to content

rossingram/node-sphero

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Sphero

How to use

npm install node-sphero

Connect your Sphero to your laptop over bluetooth. At this time only OSX 10.8 has been tested.

Add Sphero to your app:

var roundRobot = require('node-sphero');
var sphero = new roundRobot.Sphero();

sphero.connect();

sphero.on("connected", function(ball){
  var rgb = color();
  sphero.setRGBLED(0, 255, 0, false);
});

Run that, and your sphero should turn #00FF00... green.

Check out the examples for more ideas.

API

TODO.. fill in this list...

setBackLED setRGBLED setHeading roll

In Progress

The rest of the sphero bluetooth api functionality.

Thanks

Awesome work by Bradley Meck who built the initial version.

About

Some examples of using Node to control Sphero and an SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%