Created
June 21, 2018 08:56
-
-
Save colde/12758694636edc70d5beb96e07ff5d9c to your computer and use it in GitHub Desktop.
Test script for luxafor device using python HID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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