Skip to content

Instantly share code, notes, and snippets.

@colde
Created June 21, 2018 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colde/12758694636edc70d5beb96e07ff5d9c to your computer and use it in GitHub Desktop.
Save colde/12758694636edc70d5beb96e07ff5d9c to your computer and use it in GitHub Desktop.
Test script for luxafor device using python HID
import time
import hid
luxdev = hid.device(0x04d8, 0xf372)
luxdev.open(0x04d8, 0xf372)
luxdev.write([1,255,0,0,0,0,0])
time.sleep(1)
luxdev.write([1,255,0,255,0,0,0])
time.sleep(1)
luxdev.write([2,255,255,0,0,20,0])
time.sleep(1)
luxdev.write([6,5,1,0,0,0,0])
time.sleep(2)
luxdev.write([4,4,0,255,0,0,1,10])
time.sleep(2)
luxdev.write([1,255,0,255,0,0,0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment