Commit 14ee556f authored by Daniel Stan's avatar Daniel Stan

led.py pour la souris

parent 1212ea91
#!/usr/bin/env python3
import dbus
import sys
bus = dbus.SessionBus()
proxy = bus.get_object('org.roccat', '/org/roccat/Konepure')
interface=dbus.Interface(proxy, dbus_interface='org.roccat.Konepure')
def set_color(color):
interface.GfxSetLedRgb(0, color)
interface.GfxUpdate()
if __name__ == '__main__':
if sys.argv[1:]:
set_color(int(sys.argv[1], 16))
else:
print("Usage: ./led.py 0xaabbccdd")
sys.exit(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment