Skip to content

Instantly share code, notes, and snippets.

# Emulate a USB keyboard with a MicroPython device such as Raspberry Pico.
import pyb
# Microsoft
VENDOR_ID = 0x045e
# Keyboard
PRODUCT_ID = 0xfff8
# The default pins for I2C0 are SDA=GP4, SCL=GP5.