libx52/lib/libx52
nirenjan 3b8b98e74c libx52: Clean up compiler warnings 2020-06-11 23:39:28 -07:00
..
doc Update Doxygen documentation 2020-05-31 08:45:34 -07:00
Makefile.am Enable additional compiler warnings 2020-06-11 23:38:44 -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
test_blink_shift.c Add test cases for blink and shift functionality 2020-06-11 22:29:59 -07:00
test_common.c Add test cases for LEDs 2020-06-11 15:07:27 -07:00
test_common.h Add test cases for LEDs 2020-06-11 15:07:27 -07:00
test_led.c Add test cases for LEDs 2020-06-11 15:07:27 -07:00
test_offset.c Add test case for offset calculation 2020-06-09 15:29:26 -07:00
x52_commands.h Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52_common.h Allow overriding the vendor command functionality 2020-06-10 17:04:24 -07:00
x52_control.c libx52: Clean up compiler warnings 2020-06-11 23:39:28 -07:00
x52_core.c libx52: Clean up compiler warnings 2020-06-11 23:39:28 -07:00
x52_date_time.c libx52: Clean up compiler warnings 2020-06-11 23:39:28 -07:00
x52_mfd_led.c libx52: Clean up compiler warnings 2020-06-11 23:39:28 -07:00
x52_strerror.c Add config header to all C files 2020-06-05 15:19:56 -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.