18 lines
280 B
Python
Executable File
18 lines
280 B
Python
Executable File
#!/usr/bin/env python3
|
|
import hid
|
|
|
|
USB_VID = 0x6969
|
|
USB_PID = 0x0004
|
|
|
|
def main():
|
|
hid_handle = hid.device()
|
|
hid_handle.open(vendor_id=USB_VID, product_id=USB_PID)
|
|
|
|
try:
|
|
hid_handle.write(b'\x00test')
|
|
finally:
|
|
hid_handle.close()
|
|
|
|
if __name__ == '__main__':
|
|
main()
|