Axon PS2 Controller Interface Library
|
09-28-2009 02:45 AM
|
 |
JadeKnight
JadeKnight is offline
Vacuum Tube
|
|
Views: 592
Replies: 0
|
|
This is a library (.h and .c file) to interface with a PS2 controller using an Axon MCU. It should work with any AVR based MCU, though, with some minor modifications.
The low level PS2 communication code was adapted from 'Dunk's tutorial on the 'Society of Robots' website.
http://www.societyofrobots.com/membe...rials/node/200
Features:
- Configurable pin assignments (uses 4 or 5 I/O pins, and 5v regulated power).
- Supports connecting/disconnecting the controller at any time.
- Detecting analog vs. digital mode.
- Forcing analog mode on controller.
- Easy access to all buttons and axes (axes can be raw, or with a simple deadzone).
- Currently tested to work with a genuine Sony PS2 wired controller (any other brands/types *may* require some tweaking of the low-level communication code).
|
| Tags: |
PS2 Controller Axon AVR |
All times are GMT -5. The time now is 05:07 PM.