UNPKG

olliejs

Version:

A javascript (node.js) API to control Ollie with Noble

10 lines (7 loc) 199 B
var ollie = new (require('../lib/index.js'))("ef66143e996d") //enter your ollie's UUID. ollie.once("connect", function(){ setInterval(function(){ ollie.setRandomColor(); },8); }); ollie.init()