libx52/libx52
nirenjan e053e1ac1c Add support for the X52 (non-Pro model)
This uses the published device IDs for the Saitek X52 (non-Pro) model.
However, based on my knowledge, the X52 uses single color LEDs compared
to the X52 Pro's tri-color LEDs (Red/Amber/Green). For the time being,
until we can determine the actual control messages being sent to the
X52, setting the LED state will not be supported.

This commit also operates on the assumption that the other controls are
the same as the X52 Pro, specifically the following:
- Setting MFD/LED brightness
- Setting MFD text
- Setting blink and shift
- Seting time and date on the MFD clock

Issue: #11
2017-01-10 22:03:13 -08:00
..
Makefile.am Fix includedir location for headers 2016-05-16 22:15:19 -07:00
README.md Restructure code layout 2015-12-08 21:46:42 -08:00
libx52.h Make libx52_set_clock return 0 only if fields changed 2015-12-12 23:11:36 -08:00
x52_commands.h Restructure code layout 2015-12-08 21:46:42 -08:00
x52_common.h Add check for X52 vs X52 Pro 2017-01-10 21:18:26 -08:00
x52_control.c Use zero instead of LIBUSB_ERROR_OTHER as default value for rc 2016-10-08 09:22:17 -07:00
x52_core.c Add support for the X52 (non-Pro model) 2017-01-10 22:03:13 -08:00
x52_date_time.c Fix warnings about uninitialized variables 2016-10-06 15:43:32 -07:00
x52_mfd_led.c Add support for the X52 (non-Pro model) 2017-01-10 22:03:13 -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.