60#define MeJOYSTICK_RX 6
61#define MeJOYSTICK_RY 8
62#define MeJOYSTICK_LX 2
63#define MeJOYSTICK_LY 4
65#define MeJOYSTICK_R1 1
66#define MeJOYSTICK_R2 3
67#define MeJOYSTICK_L1 5
68#define MeJOYSTICK_L2 7
69#define MeJOYSTICK_TRIANGLE 9
70#define MeJOYSTICK_XSHAPED 10
71#define MeJOYSTICK_SQUARE 11
72#define MeJOYSTICK_ROUND 12
73#define MeJOYSTICK_START 13
74#define MeJOYSTICK_UP 14
75#define MeJOYSTICK_DOWN 15
76#define MeJOYSTICK_LEFT 16
77#define MeJOYSTICK_RIGHT 17
78#define MeJOYSTICK_SELECT 18
79#define MeJOYSTICK_MODE 19
80#define MeJOYSTICK_BUTTON_L 20
81#define MeJOYSTICK_BUTTON_R 21
82#define MeJOYSTICK_INIT_VALUE 0
83#define MeJOYSTICK_ANALOG_ERROR 0
90#ifndef ME_PORT_DEFINED
127 MePS2(uint8_t receivePin, uint8_t transmitPin,
bool inverse_logic);
248 uint8_t ps2_data_list[23];
249 uint8_t ps2_data_list_bak[23];
253 boolean _isAvailable;
Configuration file of library.
Header for MePort.cpp module.
Header for for MeSerial.cpp module.
Driver for MePS2 handle device.
Definition MePS2.h:96
MePS2()
Definition MePS2.cpp:60
uint8_t readBuffer(int16_t index)
Definition MePS2.cpp:117
void readSerial(void)
Definition MePS2.cpp:157
void loop(void)
Definition MePS2.cpp:335
boolean readjoystick(void)
Definition MePS2.cpp:181
void writeBuffer(int16_t index, uint8_t c)
Definition MePS2.cpp:137
int16_t MeAnalog(uint8_t button)
Definition MePS2.cpp:261
boolean ButtonPressed(uint8_t button)
Definition MePS2.cpp:308
Driver for serial.
Definition MeSerial.h:67