Skip to content
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ platforms are currently supported:
- [Sphero](http://www.sphero.com/) <=> [Package](https://github.com/hybridgroup/gobot/blob/release/platforms/sphero/sphero)
- [Sphero BB-8](http://www.sphero.com/bb8) <=> [Package](https://github.com/hybridgroup/gobot/blob/release/platforms/sphero/bb8)
- [Sphero Ollie](http://www.sphero.com/ollie) <=> [Package](https://github.com/hybridgroup/gobot/blob/release/platforms/sphero/ollie)
- [Sphero R2-D2](https://sphero.com/pages/legacy-products) <=> [Package](https://github.com/hybridgroup/gobot/blob/release/platforms/sphero/r2d2)
- [Sphero SPRK+](http://www.sphero.com/sprk-plus) <=> [Package](https://github.com/hybridgroup/gobot/blob/release/platforms/sphero/sprkplus)
- [UP2](http://www.up-board.org/upsquared/) <=> [Package](https://github.com/hybridgroup/gobot/blob/release/platforms/upboard/up2)

Expand Down
272 changes: 272 additions & 0 deletions drivers/ble/sphero/sphero_r2d2_actions.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
package sphero

type Audio uint16
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opted to put these in a different file being that there are quite a few Audio and Animation options


type Animation uint16

const (
R2Fall Audio = 1609
R2Hit1 Audio = 1623
R2Hit10 Audio = 1628
R2Hit11 Audio = 1635
R2Hit2 Audio = 1642
R2Hit3 Audio = 1647
R2Hit4 Audio = 1653
R2Hit5 Audio = 1659
R2Hit6 Audio = 1664
R2Hit7 Audio = 1669
R2Hit8 Audio = 1676
R2Hit9 Audio = 1684
R2Step1 Audio = 1690
R2Step2 Audio = 1693
R2Step3 Audio = 1696
R2Step4 Audio = 1698
R2Step5 Audio = 1700
R2Step6 Audio = 1702
R2AccessPanels Audio = 1704
R2Alarm1 Audio = 1737
R2Alarm10 Audio = 1747
R2Alarm12 Audio = 1756
R2Alarm13 Audio = 1763
R2Alarm14 Audio = 1771
R2Alarm15 Audio = 1784
R2Alarm16 Audio = 1791
R2Alarm2 Audio = 1809
R2Alarm3 Audio = 1821
R2Alarm4 Audio = 1831
R2Alarm5 Audio = 1835
R2Alarm6 Audio = 1843
R2Alarm7 Audio = 1858
R2Alarm8 Audio = 1867
R2Alarm9 Audio = 1893
R2Annoyed Audio = 1910
R2Burnout Audio = 1915
R2Chatty1 Audio = 1950
R2Chatty10 Audio = 1959
R2Chatty11 Audio = 1966
R2Chatty12 Audio = 1977
R2Chatty13 Audio = 1987
R2Chatty14 Audio = 2002
R2Chatty15 Audio = 2007
R2Chatty16 Audio = 2010
R2Chatty17 Audio = 2019
R2Chatty18 Audio = 2028
R2Chatty19 Audio = 2039
R2Chatty2 Audio = 2061
R2Chatty20 Audio = 2072
R2Chatty21 Audio = 2080
R2Chatty22 Audio = 2085
R2Chatty23 Audio = 2095
R2Chatty24 Audio = 2105
R2Chatty25 Audio = 2121
R2Chatty26 Audio = 2132
R2Chatty27 Audio = 2143
R2Chatty28 Audio = 2157
R2Chatty29 Audio = 2170
R2Chatty3 Audio = 2174
R2Chatty30 Audio = 2184
R2Chatty31 Audio = 2188
R2Chatty32 Audio = 2198
R2Chatty33 Audio = 2202
R2Chatty34 Audio = 2211
R2Chatty35 Audio = 2221
R2Chatty36 Audio = 2232
R2Chatty37 Audio = 2241
R2Chatty38 Audio = 2253
R2Chatty39 Audio = 2264
R2Chatty4 Audio = 2276
R2Chatty40 Audio = 2285
R2Chatty41 Audio = 2292
R2Chatty42 Audio = 2307
R2Chatty43 Audio = 2322
R2Chatty44 Audio = 2332
R2Chatty45 Audio = 2344
R2Chatty46 Audio = 2357
R2Chatty47 Audio = 2368
R2Chatty48 Audio = 2377
R2Chatty49 Audio = 2387
R2Chatty5 Audio = 2399
R2Chatty50 Audio = 2413
R2Chatty51 Audio = 2424
R2Chatty52 Audio = 2439
R2Chatty53 Audio = 2452
R2Chatty54 Audio = 2457
R2Chatty55 Audio = 2463
R2Chatty56 Audio = 2474
R2Chatty57 Audio = 2492
R2Chatty58 Audio = 2509
R2Chatty59 Audio = 2519
R2Chatty6 Audio = 2524
R2Chatty60 Audio = 2535
R2Chatty61 Audio = 2543
R2Chatty62 Audio = 2554
R2Chatty7 Audio = 2562
R2Chatty8 Audio = 2572
R2Chatty9 Audio = 2579
R2EngageHyperDrive Audio = 2586
R2Excited1 Audio = 2600
R2Excited10 Audio = 2615
R2Excited11 Audio = 2633
R2Excited12 Audio = 2644
R2Excited13 Audio = 2654
R2Excited14 Audio = 2662
R2Excited15 Audio = 2680
R2Excited16 Audio = 2691
R2Excited2 Audio = 2708
R2Excited3 Audio = 2726
R2Excited4 Audio = 2730
R2Excited5 Audio = 2736
R2Excited6 Audio = 2753
R2Excited7 Audio = 2767
R2Excited8 Audio = 2777
R2Excited9 Audio = 2787
R2HeadSpin Audio = 2797
R2Hey1 Audio = 2813
R2Hey10 Audio = 2824
R2Hey11 Audio = 2828
R2Hey12 Audio = 2833
R2Hey2 Audio = 2841
R2Hey3 Audio = 2856
R2Hey4 Audio = 2861
R2Hey5 Audio = 2882
R2Hey6 Audio = 2893
R2Hey7 Audio = 2898
R2Hey8 Audio = 2904
R2Hey9 Audio = 2912
R2Laugh1 Audio = 2919
R2Laugh2 Audio = 2935
R2Laugh3 Audio = 2950
R2Laugh4 Audio = 2955
R2Motor Audio = 2970
R2Negative1 Audio = 3101
R2Negative10 Audio = 3111
R2Negative11 Audio = 3115
R2Negative12 Audio = 3121
R2Negative13 Audio = 3132
R2Negative14 Audio = 3136
R2Negative15 Audio = 3148
R2Negative16 Audio = 3152
R2Negative17 Audio = 3157
R2Negative18 Audio = 3164
R2Negative19 Audio = 3167
R2Negative2 Audio = 3172
R2Negative20 Audio = 3178
R2Negative21 Audio = 3191
R2Negative22 Audio = 3200
R2Negative23 Audio = 3213
R2Negative24 Audio = 3219
R2Negative25 Audio = 3226
R2Negative26 Audio = 3230
R2Negative27 Audio = 3233
R2Negative28 Audio = 3241
R2Negative3 Audio = 3251
R2Negative4 Audio = 3258
R2Negative5 Audio = 3263
R2Negative6 Audio = 3268
R2Negative7 Audio = 3274
R2Negative8 Audio = 3282
R2Negative9 Audio = 3291
R2Positive1 Audio = 3302
R2Positive10 Audio = 3309
R2Positive11 Audio = 3318
R2Positive12 Audio = 3326
R2Positive13 Audio = 3340
R2Positive14 Audio = 3353
R2Positive15 Audio = 3358
R2Positive16 Audio = 3364
R2Positive17 Audio = 3369
R2Positive18 Audio = 3375
R2Positive19 Audio = 3388
R2Positive2 Audio = 3394
R2Positive20 Audio = 3403
R2Positive21 Audio = 3410
R2Positive22 Audio = 3422
R2Positive23 Audio = 3434
R2Positive3 Audio = 3439
R2Positive4 Audio = 3446
R2Positive5 Audio = 3449
R2Positive6 Audio = 3454
R2Positive7 Audio = 3460
R2Positive8 Audio = 3471
R2Positive9 Audio = 3478
R2Sad1 Audio = 3484
R2Sad10 Audio = 3495
R2Sad11 Audio = 3518
R2Sad12 Audio = 3526
R2Sad13 Audio = 3536
R2Sad14 Audio = 3543
R2Sad15 Audio = 3553
R2Sad16 Audio = 3561
R2Sad17 Audio = 3570
R2Sad18 Audio = 3593
R2Sad19 Audio = 3600
R2Sad2 Audio = 3608
R2Sad20 Audio = 3612
R2Sad21 Audio = 3619
R2Sad22 Audio = 3632
R2Sad23 Audio = 3639
R2Sad24 Audio = 3649
R2Sad25 Audio = 3661
R2Sad3 Audio = 3686
R2Sad4 Audio = 3693
R2Sad5 Audio = 3703
R2Sad6 Audio = 3739
R2Sad7 Audio = 3755
R2Sad8 Audio = 3782
R2Sad9 Audio = 3790
R2Scream Audio = 3797
R2Scream2 Audio = 3810
R2ShortOut Audio = 3825

Charger1 Animation = 0
Charger2 Animation = 1
Charger3 Animation = 2
Charger4 Animation = 3
Charger5 Animation = 4
Charger6 Animation = 5
Charger7 Animation = 6
EmoteAlarm Animation = 7
EmoteAngry Animation = 8
EmoteAttention Animation = 9
EmoteFrustrated Animation = 10
EmoteDrive Animation = 11
EmoteExcited Animation = 12
EmoteSearch Animation = 13
EmoteShortCircuit Animation = 14
EmoteLaugh Animation = 15
EmoteNo Animation = 16
EmoteRetreat Animation = 17
EmoteFiery Animation = 18
EmoteUnderstood Animation = 19
EmoteYes Animation = 21
EmoteScan Animation = 22
EmoteSurprised Animation = 24
Idle1 Animation = 25
Idle2 Animation = 26
Idle3 Animation = 27
WwmAngry Animation = 31
WwmAnxious Animation = 32
WwmBow Animation = 33
WwmConcern Animation = 34
WwmCurious Animation = 35
WwmDoubleTake Animation = 36
WwmExcited Animation = 37
WwmFiery Animation = 38
WmmFrustrated Animation = 39
WwmHappy Animation = 40
WwmJittery Animation = 41
WwmLaugh Animation = 42
WwmLongShake Animation = 43
WwmNo Animation = 44
WwmOminous Animation = 45
WwmRelieved Animation = 46
WwmSad Animation = 47
WwmScared Animation = 48
WwmShake Animation = 49
WwmSurprised Animation = 50
WwmTaunting Animation = 51
WwmWhisper Animation = 52
WwmYelling Animation = 53
WwmYoohoo Animation = 54
Motor Animation = 55
)
Loading