Skip to content

Instantly share code, notes, and snippets.

@Neradoc
Neradoc / mcp2221a_set_strings.py
Created February 12, 2023 02:48 — forked from twitchyliquid64/mcp2221a_set_strings.py
Example code for reading settings from the MCP2221 or MCP2221A chip, and writing product/vendor strings. Trivial to set/read other settings as well.
# Make sure you install pyusb and libusb on your system yo
import usb.core
import usb.util
import usb.control
HID_INTERFACE = 0x02
INPUT_ENDPOINT = 0x83
OUTPUT_ENDPOINT = 0x3
HID_PKT_SIZE = 64
@Neradoc
Neradoc / arrows.bmp
Created May 15, 2022 03:13 — forked from joeycastillo/arrows.bmp
Bike commuter computer with the Adafruit CLUE