Skip to content

Reference

CircuitPython provides a variety of modules that can be used in your sample applications.

Here you can find documentation for these modules, including API reference.

Module Description
_bleio Bluetooth Low Energy (BLE) communication
_pixelmap A fast pixel mapping library
adafruit_ble Higher-level Bluetooth Low Energy functionality, building on the native _bleio module
adafruit_bus_device Hardware accelerated external bus access
adafruit_hid USB Human Interface Device (HID) class
adafruit_pixelbuf A fast RGB(W) pixel buffer library for like NeoPixel and DotStar
aesio AES encryption routines
alarm Alarms and sleep
analogio Analog hardware support
array Arrays of numeric data
atexit Atexit Module
audiobusio Support for audio input and output over digital buses
audiocore Support for audio samples
audiomixer Support for audio mixing
audiomp3 Support for MP3-compressed audio files
audiopwmio Audio output via digital PWM
binascii Binary/ASCII conversions
bitbangio Digital protocols implemented by the CPU
bitmaptools Collection of bitmap manipulation tools
board Board specific pin names
builtins Builtin functions and exceptions
busio Hardware accelerated external bus access
collections Collection and container types
countio Support for edge counting
digitalio Basic digital pin support
displayio Native helpers for driving displays
errno System error codes
fontio Core font related data structures
framebufferio Native framebuffer display driving
gc Control the garbage collector
getpass Getpass Module
io Input/output streams
json JSON encoding and decoding
keypad Support for scanning keys and key matrices
math Mathematical functions
microcontroller Pin references and cpu functionality
micropython Access and control MicroPython internals
msgpack Pack object in msgpack format
neopixel Higher level NeoPixel driver that presents the strip as a sequence
neopixel_write Low-level neopixel implementation
nvm Non-volatile memory
onewireio Low-level bit primitives for Maxim (formerly Dallas Semi) one-wire protocol
os Functions that an OS normally provides
paralleldisplay Native helpers for driving parallel displays
pulseio Support for individual pulse based protocols
pwmio Support for PWM based protocols
rainbowio Rainbowio Module
random Pseudo-random numbers and choices
re Simple regular expressions
rgbmatrix Low-level routines for bitbanged LED matrices
rotaryio Support for reading rotation sensors
rtc Real Time Clock
sdcardio Interface to an SD card via the SPI bus
select Wait for events on a set of streams
sharpdisplay Support for Sharp Memory Display framebuffers
storage Storage management
struct Manipulation of C-style data
supervisor Supervisor settings
synthio Support for MIDI synthesis
sys System specific functions
terminalio Displays text in a TileGrid
time Time and timing related functions
touchio Touch related IO
traceback Traceback Module
ulab Manipulate numeric data similar to numpy
usb_cdc USB CDC Serial streams
usb_hid USB Human Interface Device
usb_midi MIDI over USB
vectorio Lightweight 2D shapes for displays
watchdog Watchdog Timer
zlib zlib decompression functionality