Core Modules¶
These core modules are intended on being consistent across ports and boards.
A module may not exist on a port/board if no underlying hardware support is
present or if flash space is limited. For example, a microcontroller without
analog features will not have analogio
. See the Module Support Matrix - Which Modules Are Available on Which Boards page for
a list of modules supported on each board.
Modules¶
_bleio
– Bluetooth Low Energy (BLE) communicationadapter
BluetoothError
RoleError
SecurityError
set_adapter()
Adapter
Address
Attribute
Characteristic
CharacteristicBuffer
Connection
Descriptor
PacketBuffer
ScanEntry
ScanResults
Service
UUID
- adapter
- BluetoothError
- RoleError
- SecurityError
- set_adapter
- Adapter
- Address
- Attribute
- Characteristic
- CharacteristicBuffer
- Connection
- Descriptor
- PacketBuffer
- ScanEntry
- ScanResults
- Service
- UUID
_eve
– Low-level BridgeTek EVE bindings_pew
– LED matrix driver_stage
– C-level helpers for animation of sprites on a stage_typing
– Types for the C-level protocolsadafruit_bus_device
– Hardware accelerated external bus accessadafruit_pixelbuf
– A fast RGB(W) pixel buffer library for like NeoPixel and DotStaraesio
– AES encryption routinesalarm
– Alarms and sleepalarm.pin
– Trigger an alarm when a pin changes state.alarm.time
– Trigger an alarm when the specified time is reached.alarm.touch
– Trigger an alarm when touch is detected.sleep_memory
wake_alarm
light_sleep_until_alarms()
exit_and_deep_sleep_until_alarms()
SleepMemory
- sleep_memory
- wake_alarm
- light_sleep_until_alarms
- exit_and_deep_sleep_until_alarms
- SleepMemory
analogio
– Analog hardware supportatexit
– Atexit Moduleaudiobusio
– Support for audio input and output over digital busesaudiocore
– Support for audio samplesaudioio
– Support for audio outputaudiomixer
– Support for audio mixingaudiomp3
– Support for MP3-compressed audio filesaudiopwmio
– Audio output via digital PWMbitbangio
– Digital protocols implemented by the CPUbitmaptools
– Collection of bitmap manipulation toolsbitops
– Routines for low-level manipulation of binary databoard
– Board specific pin namesbusio
– Hardware accelerated external bus accesscamera
– Support for camera inputcanio
– CAN bus accesscountio
– Support for edge countingdigitalio
– Basic digital pin supportdisplayio
– Native helpers for driving displaysdualbank
– DUALBANK Moduleespidf
fontio
– Core font related data structuresframebufferio
– Native framebuffer display drivingfrequencyio
– Support for frequency based protocolsgamepadshift
– Tracks button presses read through a shift register.getpass
– Getpass Modulegifio
– Access GIF-format imagesgnss
– Global Navigation Satellite Systemi2cperipheral
– Two wire serial protocol peripheralimagecapture
– Support for « Parallel capture » interfacesipaddress
is31fl3741
– Displays an in-memory framebuffer to a IS31FL3741 drive display.keypad
– Support for scanning keys and key matricesmath
– mathematical functionse
pi
acos()
asin()
atan()
atan2()
ceil()
copysign()
cos()
degrees()
exp()
fabs()
floor()
fmod()
frexp()
isfinite()
isinf()
isnan()
ldexp()
modf()
pow()
radians()
sin()
sqrt()
tan()
trunc()
expm1()
log2()
log10()
cosh()
sinh()
tanh()
acosh()
asinh()
atanh()
erf()
erfc()
gamma()
lgamma()
- e
- pi
- acos
- asin
- atan
- atan2
- ceil
- copysign
- cos
- degrees
- exp
- fabs
- floor
- fmod
- frexp
- isfinite
- isinf
- isnan
- ldexp
- modf
- pow
- radians
- sin
- sqrt
- tan
- trunc
- expm1
- log2
- log10
- cosh
- sinh
- tanh
- acosh
- asinh
- atanh
- erf
- erfc
- gamma
- lgamma
memorymonitor
– Memory monitoring helpersmicrocontroller
– Pin references and cpu functionalitymsgpack
– Pack object in msgpack formatmultiterminal
– Manage additional terminal sourcesneopixel_write
– Low-level neopixel implementationnvm
– Non-volatile memoryonewireio
– Low-level bit primitives for Maxim (formerly Dallas Semi) one-wire protocol.os
– functions that an OS normally providesparalleldisplay
– Native helpers for driving parallel displaysps2io
– Support for PS/2 protocolpulseio
– Support for individual pulse based protocolspwmio
– Support for PWM based protocolsqrio
rainbowio
random
– pseudo-random numbers and choicesrgbmatrix
– Low-level routines for bitbanged LED matricesrotaryio
– Support for reading rotation sensorsrp2pio
– Hardware interface to RP2 series” programmable IO (PIO) peripheral.rtc
– Real Time Clocksamd
– SAMD implementation settingssdcardio
– Interface to an SD card via the SPI bussdioio
– Interface to an SD card via the SDIO bussharpdisplay
– Support for Sharp Memory Display framebufferssocketpool
ssl
storage
– Storage managementstruct
– Manipulation of c-style datasupervisor
– Supervisor settingsruntime
enable_autoreload()
disable_autoreload()
set_rgb_status_brightness()
reload()
set_next_stack_limit()
set_next_code_file()
ticks_ms()
get_previous_traceback()
disable_ble_workflow()
RunReason
Runtime
- runtime
- enable_autoreload
- disable_autoreload
- set_rgb_status_brightness
- reload
- set_next_stack_limit
- set_next_code_file
- ticks_ms
- get_previous_traceback
- disable_ble_workflow
- RunReason
- Runtime
synthio
– Support for MIDI synthesisterminalio
– Displays text in a TileGridthingz
– Thingz modulethingz_accel
– Thingz accelerometerthingz_button
– Thingz buttonthingz_button_touch
– Thingz button touchthingz_display
– Thingz Displaythingz_led
– Thingz LEDthingz_radio
– Thingz Radiothingz_sound
– Thingz Soundtime
– time and timing related functionstouchio
– Touch related IOtraceback
– Traceback Moduleuheap
– Heap size analysisulab
– Manipulate numeric data similar to numpyusb_cdc
– USB CDC Serial streamsusb_hid
– USB Human Interface Deviceusb_midi
– MIDI over USBustack
– Stack information and analysisvectorio
– Lightweight 2D shapes for displayswatchdog
– Watchdog Timerwifi
help()
– Built-in method to provide helpful information