UNPKG
olliejs
Version:
latest (2.1.5)
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
A javascript (node.js) API to control Ollie with Noble
omeryagmurlu.github.io
omeryagmurlu/ollie.js
olliejs
/
examples
/
color.js
10 lines
(7 loc)
•
199 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
ollie =
new
(
require
(
'../lib/index.js'
))(
"ef66143e996d"
)
//enter your ollie's UUID.
ollie.
once
(
"connect"
,
function
(
){
setInterval
(
function
(
){ ollie.
setRandomColor
(); },
8
); }); ollie.
init
()