howdo i wire this to a mega2560 board?
Hi,
You can use this library from Bill Porter to connect a PS2 Controller (with this level shifter) with an Arduino board.
In the example code, the pins are connected as follows :
]Pin 13 to Clock/:m]
]Pin 11 to Command/:m]
]Pin 10 to Attention/:m]
]Pin 12 to Data /:m]
]Arduino GND to Level Shifter GND/:m]
]Arduino 5V to Level Shifter 5V/:m]
Regards,