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.
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();
- voximity - Creator and maintainer
- Project Aurora - HID protocol reference