#include "Arduino.h" #else #include "WProgram.h" #include "pins_arduino.h" #endifstatic byte enter_config[]={0x01,0x43,0x00,0x01,0x00}; static byte set_mode[]={0x01,0x44,0x00,0x01,0x03,0x00,0x00,0x00,0x00}; static byte set_bytes_large[]={0x01,0x4F,0x00,0xFF,0xFF,0x...
= 0x79){ #ifdef PS2X_DEBUG Serial.println("Controller mode not matched or no controller found"); Serial.print("Expected 0x41, 0x73 or 0x79, but got "); Serial.println(PS2data[1], HEX); #endif return 1; //return error code 1 } //try setting mode, increasing delays if need ...
* added some debug stuff for end user. Reports if no controller found * added auto-increasing sentence delay to see if it helps compatibility. * 1.2 * found bad math by Shutter for original clock. Was running at 50kHz, not the required 500kHz. * fixed some of the debug reporting. * ...
'ps2x.Analog()' function * added: * enableRumble(); * enablePressures(); * 1.1 * added some debug stuff for end user. Reports if no controller found * added auto-increasing sentence delay to see if it helps compatibility. * 1.2 * found bad math by Shutter for original clock. Was ...
Read a Playstation 2 Gamepad or Guitar Hero Controller using an Arduino - Arduino-PS2X/ReadME.txt at master · Edragon/Arduino-PS2X
PS2X是一个Arduino的库,添加这个库可以让你的PS2手柄与Arduino连接。 Arduino PS2X 2019-07-09 上传 大小:11KB 所需: 45积分/C币 立即下载 PS2__PC-AT__keyboard_Interface__GCC_.zip_interface_ps2_ps2 keybo PS2__PC_AT__keyboard_Interface__GCC for avr 立即下载 ...
to reconfigure controller if notpolled enough * Analog sticks and pressures all through 'ps2x.Analog)' function * added: * enableRumble(); * enablePressures(); 1.1 * addedsome debug stufffor end user. Reportsif no found * added auto-increasingsentence delay to see...
= 0x79){ #ifdef PS2X_DEBUG Serial.println("Controller mode not matched or no controller found"); Serial.print("Expected 0x41, 0x73 or 0x79, but got "); Serial.println(PS2data[1], HEX); #endif return 1; //return error code 1 } //try setting mode, increasing delays if need be...
#include "pins_arduino.h" #endifstatic byte enter_config[]={0x01,0x43,0x00,0x01,0x00}; static byte set_mode[]={0x01,0x44,0x00,0x01,0x03,0x00,0x00,0x00,0x00}; static byte set_bytes_large[]={0x01,0x4F,0x00,0xFF,0xFF,0x03,0x00,0x00,0x00}; ...
Read a Playstation 2 Gamepad or Guitar Hero Controller using an Arduino - Arduino-PS2X/PS2X_lib/PS2X_lib.h at master · madsci1016/Arduino-PS2X