Libraries Needed
PyKey needs a number of libraries to be available on the board for it to run.
| Library/Module | Import (with link to docs) | Files/Folder needed |
|---|---|---|
| Default Modules | ||
| Saved Keymnap Definitions | import os | |
| GPIO Definition | import board | |
| GPIO Access | import digitalio | |
| Key Matrix and Switches | import keypad | |
| Basic Sound/Buzzer | import pwmio | |
| PWM/Dimming LEDs | import pwmio | |
| RGB LEDs - color wheel | import rainbowio | |
| Rotary Encoders | import rotaryio | |
| Sleep/delay | import time | |
| USB Human Interface Device Definition | import usb_hid | |
| Adafruit CircuitPython Library Bundle | ||
| Keyboard USB HID | from adafruit_hid.keyboard import Keyboard | adafruit_hid |
| RGB LEDs - Access | import neopixel | neopixel.mpy |
PyKey uses libraries from the Adafruit CircuitPython Library Bundle 7.x. These are pre-compiled libraries in mpy format (a binary format representing the pre-compiled Python code)
Installing Libraries is as simple as copying the necessary files into the lib folder of your CircuitPython device.