/DuckySharp

Basic library interfacing Ducky RGB keyboards over USB HID

Primary LanguageC#MIT LicenseMIT

DuckySharp

DuckySharp is a basic library interfacing Ducky keyboards' RGB features over USB HID.

The methods used by this library were found through reverse engineering, and as such are not official. Use at your own risk.

Tested with a One 2 RGB.

Example

The following example will set all LEDs to white, then turn off after two seconds.

using DuckySharp;

// ...

Keyboard keyboard = new Keyboard();
keyboard.Initialize();

foreach (Key key in Keys.All)
	keyboard.SetKeyColor(key, new Color(255, 255, 255));

keyboard.Update()

Thread.Sleep(2000);
keyboard.Close();

Credits