.NET library and tools for controlling Luxafor LED devices via HID.
Supports Luxafor Flag, Bluetooth Pro (via USB dongle), Mute Button, Smart Button, and Colorblind devices, on Windows, macOS and Linux.
| Project | Description |
|---|---|
src/DotLuxafor |
The library, published to NuGet as DotLuxafor. Targets netstandard2.0, net8.0 and net10.0. |
src/DotLuxafor.Cli |
Command-line interface for driving a device from a shell or a script. |
src/DotLuxafor.ControlPanel |
Avalonia desktop app for controlling a device and watching its events. |
dotnet add package DotLuxafor
using DotLuxafor;
using var device = LuxaforDevices.TryOpen();
await device!.SetColorAsync(LuxaforColor.Red);The full API documentation — commands, choosing between several devices, software animations, event monitoring, dependency injection, and how to diagnose a device the operating system refuses to open — lives in the library README.
dotnet build
dotnet test
Requires the .NET 10 SDK (see global.json). The library itself also targets
netstandard2.0 and net8.0, so consumers do not need .NET 10.
MIT — see LICENSE.