libx52/lib/libx52
nirenjan 2c522b9a66 Add reference to libx52_connect in integration documentation 2021-02-09 00:09:48 -08:00
..
doc Add reference to libx52_connect in integration documentation 2021-02-09 00:09:48 -08:00
Makefile.am Move headers to $(includedir)/libx52 2020-07-17 15:27:42 -07:00
README.md Reorganize source layout 2017-07-27 17:56:51 -07:00
libx52.h Cleanup spurious whitespace 2020-06-08 23:52:27 -07:00
libx52.pc.in Generate pkg-config file for libx52 2020-04-16 22:10:48 -07:00
x52_commands.h Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52_common.h Revert "Save PID in libx52_device structure" 2020-07-05 16:10:23 -07:00
x52_control.c Remove manual tests in favor of cmocka 2020-06-16 17:33:15 -07:00
x52_core.c Replace hard-coded values with #define's 2020-07-08 17:35:17 -07:00
x52_date_time.c libx52: Clean up compiler warnings 2020-06-11 23:39:28 -07:00
x52_mfd_led.c Update libx52_set_led_state to use check_feature 2020-06-28 08:35:14 -07:00
x52_strerror.c Add config header to all C files 2020-06-05 15:19:56 -07:00
x52_test_gen.py Cleanup generated test formatting 2020-06-28 08:57:01 -07:00
x52_tests.json Add clock tests to verify PDT/PST/UTC 2020-06-28 11:32:19 -07: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.