libx52/libx52
nirenjan 059ec6af1a Make libx52_set_clock return 0 only if fields changed
This is used by an application to check if it needs to call
libx52_update. If libx52_set_clock returns 0, it can be assumed that the
clock did change values that require an update, but any other value
indicates that an update is not required.
2015-12-12 23:11:36 -08:00
..
Makefile.am Reduce number of control messages for clock update 2015-12-11 09:04:54 -08: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 Restructure code layout 2015-12-08 21:46:42 -08:00
x52_control.c Restructure code layout 2015-12-08 21:46:42 -08:00
x52_core.c Restructure code layout 2015-12-08 21:46:42 -08:00
x52_date_time.c Make libx52_set_clock return 0 only if fields changed 2015-12-12 23:11:36 -08:00
x52_mfd_led.c Restructure code layout 2015-12-08 21:46:42 -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.