Created
December 13, 2014 19:23
-
-
Save Tangent128/c2809bb0539cd3417ed2 to your computer and use it in GitHub Desktop.
Xbox 360 controller LED control codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo $CODE > /sys/class/leds/xpad*/brightness | |
(codes 2-5, 11, and 13 ignore other codes until blinking done, but they will immediately apply the most recent code once the blinking's done) | |
0: off | |
1: blink all, then light the default light | |
2: blink #1 a moment, then set #1 and make #1 default | |
3: blink #2 a moment, then set #2 and make #2 default | |
4: blink #3 a moment, then set #3 and make #3 default | |
5: blink #4 a moment, then set #4 and make #4 default | |
6: light #1 solid | |
7: light #2 solid | |
8: light #3 solid | |
9: light #4 solid | |
10: spin lights (until other code issued) | |
11: do a long blink of the default light, then set the default light | |
12: low-duty-cycle blink of default light (until other code issued) | |
13: blink alternate LEDs a while, then set the default light |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment