Adafruit-Blinka
CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython.
Decision gist · record as of 2026-08-14
Yes, if you are developing on CPython or MicroPython and need CircuitPython-compatible hardware APIs. The package is actively maintained, has no known vulnerabilities, installs with low friction, and is permissively licensed. Do not install on devices already running CircuitPython, where built-in modules should be used instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; intended for CPython on GNU/Linux or MicroPython—not for devices already running CircuitPython, where built-in modules should be used instead.
- Low install friction with a pure-Python wheel.
- Active maintenance (last commit 2026-07-30, release 15 days ago).
License · maintenance · safety
MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2026-07-30 (15 days) · last repo commit 2026-07-30 · 536 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 172,351 downloads/mo, #10,340 on PyPI
Alternatives
Verify before relying
pip3 install Adafruit-Blinka
import time
from Adafruit_Blinka import board
from Adafruit_Blinka import digitalio
led = digitalio.DigitalInOut(board.D18)
led.direction = digitalio.Direction.OUTPUT
led.value = True
time.sleep(0.5)- Which specific board types and microcontroller families are fully supported beyond Raspberry Pi.
- Performance characteristics when using software-driven interfaces (bitbangio) vs. hardware-driven (busio).
- Compatibility matrix with specific versions of MicroPython implementations.
- Whether all emulated modules (analogio, keypad, neopixel_write, usb_hid) are production-ready or experimental.
What it is and what it does
Adafruit-Blinka is a compatibility layer that brings CircuitPython's hardware abstraction APIs to CPython and MicroPython environments. It emulates modules for digital I/O, I2C, SPI, UART, analog input/output, PWM, NeoPixels, keypad scanning, and USB HID, allowing you to write code in CircuitPython style that runs on Linux single-board computers. The package handles platform detection and pin mapping automatically, translating high-level calls into appropriate low-level hardware operations for your host.
The library is designed for developers who want to prototype or deploy applications on platforms running full Python interpreters rather than CircuitPython's minimal runtime. It includes both hardware-driven interfaces using native kernel drivers and software-driven fallbacks for I2C and SPI, making it adaptable to various hardware configurations. Test suites are designed to run on either CircuitPython or CPython plus this compatibility layer to verify API conformance.
Use it for
- Prototype and test CircuitPython applications on Linux single-board computers before deploying to CircuitPython boards.
- Control GPIO, I2C, SPI, and UART peripherals from Python on embedded Linux using CircuitPython-compatible syntax.
- Write cross-platform hardware tests that run on both CircuitPython devices and CPython/MicroPython hosts.
- Build applications needing the full Python standard library while controlling low-level hardware interfaces.
- Emulate NeoPixel, keypad, and PWM functionality on non-CircuitPython platforms for LED and motor control.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are developing on CPython or MicroPython and need CircuitPython-compatible hardware APIs.
The package is actively maintained, has no known vulnerabilities, installs with low friction, and is permissively licensed. Do not install on devices already running CircuitPython, where built-in modules should be used instead.
Install
adafruit-blinka on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance (last commit 2026-07-30, release 15 days ago). Seven runtime dependencies including Adafruit-PlatformDetect, Adafruit-PureIO, pyftdi, and binho-host-adapter for hardware-specific support.
Requires Python 3.9 or later; intended for CPython on GNU/Linux or MicroPython—not for devices already running CircuitPython, where built-in modules should be used instead.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip3 install Adafruit-Blinka
import time
from Adafruit_Blinka import board
from Adafruit_Blinka import digitalio
led = digitalio.DigitalInOut(board.D18)
led.direction = digitalio.Direction.OUTPUT
led.value = True
time.sleep(0.5)
Verify before relying
- Which specific board types and microcontroller families are fully supported beyond Raspberry Pi.
- Performance characteristics when using software-driven interfaces (bitbangio) vs. hardware-driven (busio).
- Compatibility matrix with specific versions of MicroPython implementations.
- Whether all emulated modules (analogio, keypad, neopixel_write, usb_hid) are production-ready or experimental.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesAdafruit-PlatformDetectAdafruit-PureIObinho-host-adapterpyftdiadafruit-circuitpython-typingsysv_ipctoml |
| Maintenance | Actively maintained 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 172,351 / month, #10,340 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: MicroPython |
Evidence: adafruit_blinka-9.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “circuitpython api emulation”
- Adafruit-BlinkaAdafruit-Blinka emulates CircuitPython APIs on CPython and…
- adafruit-circuitpython-requestsA requests-like HTTP library for CircuitPython and microcontroller…
- adafruit-circuitpython-typingProvides type annotation definitions for CircuitPython code that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also adafruit-circuitpython-requests · Adafruit-PlatformDetect · adafruit-circuitpython-busdevice · adafruit-circuitpython-typing · adafruit-circuitpython-connectionmanager · pymata-express · gpiozero · akracer · RPi.GPIO · pyocd