libx52/libx52
nirenjan 3c02fe5ec2 refactor: Rearrange files to avoid duplicate code issue
Prior to this change, SonarQube complains about duplicated code in the
symlinked header files. This change reworks the layout so that the
installed headers all reside under the 'includes' directory, and the
meson.build files are updated to reflect the new paths.
2026-04-20 10:28:24 -07:00
..
README.md Move libx52 to top level 2021-07-29 21:41:07 -07:00
commands.h build: Rename source files to remove prefixes 2026-04-03 23:02:43 -07:00
common.h build: Rename source files to remove prefixes 2026-04-03 23:02:43 -07:00
control.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
core.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
date_time.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
meson.build refactor: Rearrange files to avoid duplicate code issue 2026-04-20 10:28:24 -07:00
mfd_led.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
strerror.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
stringify.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
test_strings.c build: Migrate includes to use libx52/ prefix 2026-04-03 22:54:48 -07:00
x52_test_gen.py build: Rename source files to remove prefixes 2026-04-03 23:02:43 -07:00
x52_tests.json Move libx52 to top level 2021-07-29 21:41:07 -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.