This repository has been archived by the owner on Dec 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
/
sphero.js
62 lines (61 loc) 路 1.84 KB
/
sphero.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* eslint key-spacing: 0 */
"use strict";
module.exports = {
setHeading : 0x01,
setStabilization : 0x02,
setRotationRate : 0x03,
setCreationDate : 0x04,
getBallRegWebsite : 0x05,
reEnableDemo : 0x06,
getChassisId : 0x07,
setChassisId : 0x08,
selfLevel : 0x09,
setVdl : 0x0A,
setDataStreaming : 0x11,
setCollisionDetection : 0x12,
locator : 0x13,
setAccelerometer : 0x14,
readLocator : 0x15,
setRgbLed : 0x20,
setBackLed : 0x21,
getRgbLed : 0x22,
roll : 0x30,
boost : 0x31,
move : 0x32,
setRawMotors : 0x33,
setMotionTimeout : 0x34,
setOptionsFlag : 0x35,
getOptionsFlag : 0x36,
setTempOptionFlags : 0x37,
getTempOptionFlags : 0x38,
getConfigBlock : 0x40,
setSsbParams : 0x41,
setDeviceMode : 0x42,
setConfigBlock : 0x43,
getDeviceMode : 0x44,
getSsb : 0x46,
setSsb : 0x47,
ssbRefill : 0x48,
ssbBuy : 0x49,
ssbUseConsumeable : 0x4A,
ssbGrantCores : 0x4B,
ssbAddXp : 0x4C,
ssbLevelUpAttr : 0x4D,
getPwSeed : 0x4E,
ssbEnableAsync : 0x4F,
runMacro : 0x50,
saveTempMacro : 0x51,
saveMacro : 0x52,
initMacroExecutive : 0x54,
abortMacro : 0x55,
macroStatus : 0x56,
setMacroParam : 0x57,
appendTempMacroChunk : 0x58,
eraseOBStorage : 0x60,
appendOBFragment : 0x61,
execOBProgram : 0x62,
abortOBProgram : 0x63,
answerInput : 0x64,
commitToFlash : 0x65,
commitToFlashAlias : 0x70
};