December 13, 2020

Logitech Gaming LED SDK for Delphi

You've got a LED illuminated keyboard, mouse or headset from Logitech? Then using Logitech Gaming LED SDK, you'll be able to make illuminations on your Logitech hardware supporting that feature. For example, you may assign colors to keys on the keyboard, make it flash or pulse.

Full source code, including demos on Github: https://github.com/fpiette/Logitech-Gaming-LED-SDK-for-Delphi

Minimalist example:

uses
    System.SysUtils,
    LogitechLedLib in 'LogitechLedLib.pas';
begin
    WriteLn('Your keyboard is pulsing for 5 seconds...');
    LogiLed.LoadLedEngine();
    LogiLed.InitWithName('Logitech LED Delphi Console Demo');
    LogiLed.SetTargetDevice(LOGI_DEVICETYPE_ALL);
    LogiLed.PulseLighting(100, 90, 60, 5000, 200);
    WriteLn('Hit RETURN');
    ReadLn;
    LogiLed.Shutdown();
end.

No comments: