libx52/libx52
nirenjan 531c92ecab Add header file to x52test_SOURCES
The absence was causing `make distcheck' to fail.
2015-12-04 20:33:08 -08:00
..
src Enhance clock test to test all portions of clock 1 2015-12-04 19:34:19 -08:00
.gitignore Add x52cli command for interfacing with the X52Pro 2015-12-02 19:11:06 -08:00
Makefile.am Add header file to x52test_SOURCES 2015-12-04 20:33:08 -08:00
README.md Fix Readme & help output 2015-12-03 08:39:01 -08:00
autogen.sh Use autotools to generate library 2015-11-30 22:12:16 -08:00
configure.ac Export vendor command interface 2015-12-04 18:27:21 -08:00

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 (Package name may vary across distributions)

Installation

  1. Clone the parent Git repository
  2. Run autogen.sh
  3. Run configure; make and sudo make install.

The test program is not installed. Use x52cli to communicate with the joystick and set the LEDs and MFD state.