mirror of https://github.com/nirenjan/libx52.git
|
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Makefile.am | ||
README.md | ||
autogen.sh | ||
configure.ac |
README.md
X52 Pro MFD library
This is a library which communicates using libusb-1.0 with the Saitek X52 Pro HOTAS. The library provides several functions to control the LEDs and MFD of the above HOTAS.
Supported functions
- Set the LED state of all LEDs
- Write text to each of the MFD lines
- Set the date/time on the MFD
- Make the clutch and hat LEDs blink
- Display the "SHIFT" indicator in the MFD
Note that when writing text to the MFD, the line length is limited to 16 characters. While you can pass a longer string, the library will only consider the first 16 characters for writing to the display.
Building the library
Build has been tested on Ubuntu 14.04 LTS on x86_64.
Prerequisites
You will need the following packages:
- automake
- autoconf
- libusb-1.0-0-dev
Installation
- Clone the parent Git repository
- CD to the libx52 folder and run autogen.sh
- Run configure; make and sudo make install.
The test program is not installed, there will be a separate command line utility in the future that utilizes the library and communicates with the joystick.