libx52/lib/libx52
nirenjan a733d4420c Add API to let caller handle memory management
This is inspired by [skeeto]'s recent post on [minimalist C libraries]
and allows the caller to decide how to allocate or free memory needed by
libx52. A future addition could let the caller allocate a big enough
buffer up front, and let libx52 manage it.

[skeeto]: https://github.com/skeeto
[minimalist C libraries]: http://nullprogram.com/blog/2018/06/10/

[skip-ci]
2018-06-11 15:25:35 -07:00
..
Makefile.am Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
README.md Reorganize source layout 2017-07-27 17:56:51 -07:00
libx52.h Add API to let caller handle memory management 2018-06-11 15:25:35 -07:00
x52_commands.h Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52_common.h Add API to let caller handle memory management 2018-06-11 15:25:35 -07:00
x52_control.c Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52_core.c Add API to let caller handle memory management 2018-06-11 15:25:35 -07:00
x52_date_time.c Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52_mfd_led.c Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52_strerror.c Add SPDX license identifiers in all files 2018-04-18 12:19:29 -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.