Skip to content

Instantly share code, notes, and snippets.

@ivazqueznet
ivazqueznet / usbleds.py
Created May 22, 2016 01:06
USB WS2812B Python control script
#!/usr/bin/python
import sys
import random
import time
import struct
import usb1
USB_GET_VERSION = 0
USB_SET_LED_COUNT = 1