GitHub - adafruit/circuitpython: CircuitPython - a Python implementation for teaching coding with microcontrollers (original) (raw)

CircuitPython

https://s3.amazonaws.com/adafruit-circuit-python/CircuitPython_Repo_header_logo.png

Build Status Doc Status License Discord Weblate

circuitpython.org | Get CircuitPython |Documentation | Contributing |Branding | Differences from Micropython |Project Structure

CircuitPython is a beginner friendly, open source version of Python for tiny, inexpensive computers called microcontrollers. Microcontrollers are the brains of many electronics including a wide variety of development boards used to build hobby projects and prototypes. CircuitPython in electronics is one of the best ways to learn to code because it connects code to reality. Simply install CircuitPython on a supported USB board usually via drag and drop and then edit a code.pyfile on the CIRCUITPY drive. The code will automatically reload. No software installs are needed besides a text editor (we recommend Mu for beginners.)

Starting with CircuitPython 7.0.0, some boards may only be connectable over Bluetooth Low Energy (BLE). Those boards provide serial and file access over BLE instead of USB using open protocols. (Some boards may use both USB and BLE.) BLE access can be done from a variety of apps includingcode.circuitpython.org.

CircuitPython features unified Python core APIs and a growing list of 300+ device libraries and drivers that work with it. These libraries also work on single board computers with regular Python via the Adafruit Blinka Library.

CircuitPython is based on MicroPython. Seebelow for differences. Most, but not all, CircuitPython development is sponsored by Adafruit and is available on their educational development boards. Please support both MicroPython and Adafruit.

Get CircuitPython

Official binaries for all supported boards are available throughcircuitpython.org/downloads. The site includes stable, unstable and continuous builds. Full release notes are available throughGitHub releases as well.

Documentation

Guides and videos are available through the Adafruit Learning System under the CircuitPython category. An API reference is also available on Read the Docs. A collection of awesome resources can be found at Awesome CircuitPython.

Specifically useful documentation when starting out:

Contributing

SeeCONTRIBUTING.mdfor full guidelines but please be aware that by contributing to this project you are agreeing to the Code of Conduct. Contributors who follow the Code of Conductare welcome to submit pull requests and they will be promptly reviewed by project admins. Please join theDiscord too.

Branding

While we are happy to see CircuitPython forked and modified, we'd appreciate it if forked releases not use the name "CircuitPython" or the Blinka logo. "CircuitPython" means something special to us and those who learn about it. As a result, we'd like to make sure products referring to it meet a common set of requirements.

If you'd like to use the term "CircuitPython" and Blinka for your product here is what we ask:

If you choose not to meet these requirements, then we ask you call your version of CircuitPython something else (for example, SuperDuperPython) and not use the Blinka logo. You can say it is "CircuitPython-compatible" if most CircuitPython drivers will work with it.


Differences from MicroPython

CircuitPython:

Behavior

API

Modules


Project Structure

Here is an overview of the top-level source code directories.

Core

The core code ofMicroPython is shared amongst ports including CircuitPython:

Ports

Ports include the code unique to a microcontroller line.

The following ports are available: atmel-samd, cxd56, espressif, litex, mimxrt10xx, nordic, raspberrypi, renode, silabs (efr32), stm, unix.

However, not all ports are fully functional. Some have limited functionality and known serious bugs. For details, refer to the Port status section in the latest release notes.

Boards

Back to Top