-
Notifications
You must be signed in to change notification settings - Fork 0
/
pb_child.h
73 lines (61 loc) · 1.3 KB
/
pb_child.h
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
63
64
65
66
67
68
69
70
71
72
73
// -----------------------------------------------------------------------------
// Dirty Dishes pinball: Child Arduino
// Rubem Pechansky 2021
// -----------------------------------------------------------------------------
#ifndef pb_child_h
#define pb_child_h
#define CHILD_ADDRESS 0x10
#define NLEDS 9
#define SERVO_TIMER 300
// Commands
enum class childCommands
{
RESET = 0x10,
PORT,
SERVO,
SOUND,
LED,
MOTOR,
};
enum class childLeds
{
ROLLOVER1 = 0,
ROLLOVER2,
ROLLOVER3,
ROLLOVER_SKILL,
HOLD,
RIGHT_OUTLANE,
LEFT_OUTLANE,
LEFT_ORBIT,
LIGHTS,
};
enum class servoCmd
{
CLOSE = 1,
OPEN,
};
enum class outState
{
OFF = 0,
ON = 1,
FLASH,
ONESHOT,
};
/*
* Sounds provided by https://freesound.org/
*/
enum soundNames
{
DING = 1, // Ding-ding-small-bell by JohnsonBrandEditing
DRAIN, // Water-go-down-the-hole by Incarnadine
GLASS, // Glass-break-medium-jar by RoganMcDougald
CLANG, // Donk-metal-glass by EminYILDIRIM
FAUCET, // Water-pour-sink-a by InspectorJ (www.jshaw.co.uk)
CRASH, // Crashing glassbottles by RackhamsReverse
FRYING, // Food-frying by TyroneW
BUBBLES, // Bubbles by ManuelAurreaf
CABINET, // Glass-shake-cabinet-closet by Garuda1982
SHAKE, // Water by TechyActor15
BELL, // Glass Bell Ringing by f-r-a-g-i-l-e
};
#endif // pb_child_h