Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

PS2 controller library


Files

file  otPS2Controller.h
 Library for PS2 controller.

Modules

 Version History

Data Structures

class  otPS2Controller
 Library allows you to manage a PS2 controller. More...
class  otPS2Controller
 Library allows you to manage a PS2 controller. More...

Typedefs

typedef void(* setPS2CB )(bool)
 Function prototype for the control of the output signal: Clock, Attention, Command. Set bool to true for set, false for clear related signal.
typedef bool(* chkPS2CB )()
 Function prototype for the read of the input signal: Data. Return true when DATA signal is at high level.

Detailed Description

This library allows you to manage a PS2 controller.
This code has been tested using fast ports of the DSP and with slower ports placed on an auxiliary port (MCP23S17) on the SPI bus. Original code: http://www.billporter.info/2010/06/05/playstation-2-controller-arduino-library-v1-0/
Dependency:
TIMER - Procedure for timer usage
ps2.jpg
ps2signals.jpg

Typedef Documentation

typedef bool(* chkPS2CB)()
 

typedef void(* setPS2CB)(bool)
 

footer

otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0