31 #define PSPNx_Command 0x41
32 #define PSPNx_ButtonSet1 0x42
33 #define PSPNx_ButtonSet2 0x43
34 #define PSPNx_XLeftJoystick 0x44
35 #define PSPNx_YLeftJoystick 0x45
36 #define PSPNx_XRightJoystick 0x46
37 #define PSPNx_YRightJoystick 0x47
39 #define BS2_Button_L2 0
40 #define BS2_Button_R2 1
41 #define BS2_Button_L1 2
42 #define BS2_Button_R1 3
43 #define BS2_Button_Triangle 4
44 #define BS2_Button_Circle 5
45 #define BS2_Button_Cross 6
46 #define BS2_Button_Square 7
48 #define BS1_Button_Select 0
49 #define BS1_Button_L3 1
50 #define BS1_Button_R3 2
51 #define BS1_Button_Start 3
52 #define BS1_Button_Up 4
53 #define BS1_Button_Right 5
54 #define BS1_Button_Down 6
55 #define BS1_Button_Left 7
57 #include "NXShieldI2C.h"
66 PSPNx(uint8_t i2c_address = 0x02);
104 void getButtons(int8_t *buttons1, int8_t *buttons2);
This class implements I2C interfaces used by NXShield.
Definition: NXShieldI2C.h:32
uint8_t issueCommand(char command)
Definition: PSPNx.cpp:36
bool energize()
Definition: PSPNx.cpp:41
bool deEnergize()
Definition: PSPNx.cpp:46
This class interfaces with PSP-Nx attached to NXShield.
Definition: PSPNx.h:62
int8_t getYRJoy()
Definition: PSPNx.cpp:85
void getButtons(int8_t *buttons1, int8_t *buttons2)
Definition: PSPNx.cpp:94
PSPNx(uint8_t i2c_address=0x02)
Definition: PSPNx.cpp:31
bool setAnalogMode()
Definition: PSPNx.cpp:56
int8_t getXLJoy()
Definition: PSPNx.cpp:61
int8_t getXRJoy()
Definition: PSPNx.cpp:77
bool setDigitalMode()
Definition: PSPNx.cpp:51
int8_t getYLJoy()
Definition: PSPNx.cpp:69