USB Host Shield 2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
xboxEnums.h
Go to the documentation of this file.
1 /* Copyright (C) 2012 Kristian Lauszus, TKJ Electronics. All rights reserved.
2 
3  This software may be distributed and modified under the terms of the GNU
4  General Public License version 2 (GPL2) as published by the Free Software
5  Foundation and appearing in the file GPL2.TXT included in the packaging of
6  this file. Please note that GPL2 Section 2[b] requires that all works based
7  on this software must also be made publicly available under the terms of
8  the GPL2 ("Copyleft").
9 
10  Contact information
11  -------------------
12 
13  Kristian Lauszus, TKJ Electronics
14  Web : http://www.tkjelectronics.com
15  e-mail : kristianl@tkjelectronics.com
16  */
17 
18 #ifndef _xboxenums_h
19 #define _xboxenums_h
20 
21 #include "controllerEnums.h"
22 
24 enum LEDMode {
25  ROTATING = 0x0A,
26  FASTBLINK = 0x0B,
27  SLOWBLINK = 0x0C,
28  ALTERNATING = 0x0D,
29 };
30 
32 const uint8_t XBOXLEDS[] PROGMEM = {
33  0x02, // LED1
34  0x03, // LED2
35  0x04, // LED3
36  0x05, // LED4
37  0x01 // ALL - Used to blink all LEDs
38 };
40 const uint16_t XBOXBUTTONS[] PROGMEM = {
41  0x0100, // UP
42  0x0800, // RIGHT
43  0x0200, // DOWN
44  0x0400, // LEFT
45 
46  0x2000, // BACK
47  0x1000, // START
48  0x4000, // L3
49  0x8000, // R3
50 
51  0, 0, // Skip L2 and R2 as these are analog buttons
52  0x0001, // L1
53  0x0002, // R1
54 
55  0x0020, // B
56  0x0010, // A
57  0x0040, // X
58  0x0080, // Y
59 
60  0x0004, // XBOX
61  0x0008 // SYNC
62 };
63 
64 #endif
const uint16_t XBOXBUTTONS[]
Definition: xboxEnums.h:40
const uint8_t XBOXLEDS[]
Definition: xboxEnums.h:32
LEDMode
Definition: xboxEnums.h:24