Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Commit 7912dd1

Browse files
committed
Added LED control docs to readme
1 parent 0b2426d commit 7912dd1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Readme.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@ Mac OSX driver: http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/O
3737
xbox.on('right:move', function(position){
3838
console.log('right:move', position)
3939
})
40+
41+
## LEDs
42+
43+
Set LED pattern on controller:
44+
45+
xbox.setLed(0x0A)
46+
47+
Available LED patterns:
48+
49+
0x00 All off
50+
0x01 All blinking
51+
0x02 1 flashes, then on
52+
0x03 2 flashes, then on
53+
0x04 3 flashes, then on
54+
0x05 4 flashes, then on
55+
0x06 1 on
56+
0x07 2 on
57+
0x08 3 on
58+
0x09 4 on
59+
0x0A Rotating (e.g. 1-2-4-3)
60+
0x0B Blinking*
61+
0x0C Slow blinking*
62+
0x0D Alternating (e.g. 1+4-2+3), then back to previous*
4063

4164
## TODO
4265

0 commit comments

Comments
 (0)