-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
54 lines (38 loc) · 1.76 KB
/
README
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
RockBand StageKit API
Linux support libraries for the PDP Rock Band Stage Kit, including full control over the strobe, fog, and led lights.
-----------------------------
USAGE:
To use the API, simply put the stagekit.h and stagekit.c files in the relevant spot of your project directory,
#include them, and then issue an sk_init(char *filename) where filename is the location of the appropriate event file
(such as /dev/input/event5), and then use any of the other commands according to what you want to do.
sk_init(char *filename)
Open an event interface file for a stage kit. If set to NULL, the API will attempt to probe for one automatically.
sk_close()
Closes the file handles for the stage kit.
sk_alloff()
Sends a "panic" signal to turn everything off at once.
sk_nostrobe()
Disable strobe
sk_slowstrobe()
Sets a slow strobe
sk_medstrobe()
Sets a medium strobe
sk_faststrobe()
Sets a fast strobe
sk_fasteststrobe()
Sets the fastest strobe
sk_fogon()
Turn on the fogger
sk_fogoff()
Turn off the fogger
sk_setred(i)
Set the red leds according to the first 8 bits of i, where each bit represents a single led
sk_setyellow(i)
Set the yellow leds according to the first 8 bits of i, where each bit represents a single led
sk_setgreen(i)
Set the green leds according to the first 8 bits of i, where each bit represents a single led
sk_setblue(i)
Set the blue leds according to the first 8 bits of i, where each bit represents a single led
sk_setleds(r,y,g,b)
Set all the led arrays, with the same convention as the other ones, but all at once, with r being red, y being yellow, etc.
Merely a convenience function; the same as calling the sk_setred, sk_setyellow, sk_setgreen, and sk_setblue functions one after another