No description
Find a file
Jeff Epler 1ab8176e1d mpconfig: Use RUN_BACKGROUND_TASKS as the micropython event hook
This is a newer abstraction in micropython; it'll for instance
allow background tasks to be checked once per ms in the internal
select module modselect.

Because `MICROPY_INTERNAL_EVENT_HOOK` is used in a few locations,
our own CIRCUITPY-CHANGE call to `RUN_BACKGROUND_TASKS` can be
nixed. Specifically, `mp_event_handle_nowait` calls
`MICROPY_INTERNAL_EVENT_HOOK` so paths from it don't need
`RUN_BACKGROUND_TASKS` anymore.
2025-05-27 17:05:40 +02:00
.codespell add formatting/spelling exceptions 2024-07-29 18:59:59 -04:00
.devcontainer install most current version of CMAKE from kitware 2024-11-26 09:43:53 +01:00
.github Workaround ESP-IDF issue #15035. 2025-04-17 11:38:39 -07:00
data Update data/nvm.toml to fix CI problem. 2025-04-14 10:09:37 -07:00
devices/ble_hci Fix -Wold-style-definion errors in the raspberrypi port 2025-05-25 09:16:00 +02:00
docs add the prepare readme python script 2025-05-08 09:16:18 -05:00
examples non-conflict merge changes 2024-09-05 14:54:18 -04:00
extmod Make collect the default 2025-04-24 14:59:07 -07:00
frozen update frozen libraries, especially asyncio 2025-04-14 20:29:34 -04:00
lib Update tinyusb to improve direct USB host 2025-05-14 11:32:38 -07:00
LICENSES updates before header conversion 2024-05-17 14:56:28 -04:00
locale Translated using Weblate (Swedish) 2025-05-15 10:01:43 +02:00
logo non-conflict merge changes 2024-09-05 14:54:18 -04:00
mpy-cross change remaining STATIC to static 2024-09-03 17:40:07 -04:00
ports Fix -Wold-style-definion errors in the raspberrypi port 2025-05-25 09:16:00 +02:00
py mpconfig: Use RUN_BACKGROUND_TASKS as the micropython event hook 2025-05-27 17:05:40 +02:00
shared Revert PR #10301, obsoleted by PR #10325. 2025-05-10 16:26:00 -07:00
shared-bindings Merge remote-tracking branch 'adafruit/9.2.x' into merge-from-9.2.x-2025-05-23 2025-05-23 09:05:14 -04:00
shared-module Fix -Wold-style-definion errors in the raspberrypi port 2025-05-25 09:16:00 +02:00
supervisor Fix -Wold-style-definion errors in the raspberrypi port 2025-05-25 09:16:00 +02:00
tests Updated tests 2025-04-23 17:49:15 -05:00
tools Fix cp.org release PR creation 2025-05-05 10:44:43 -07:00
.codespellrc fix typos (partial) detected by codepell 2023-03-18 22:17:02 +07:00
.git-blame-ignore-revs top: Update .git-blame-ignore-revs for latest format/spell commits. 2024-03-07 16:29:46 +11:00
.gitattributes merge from main 2024-07-29 17:41:46 -04:00
.gitignore Add native support for LVGL binary fonts on disk 2025-03-28 15:54:41 -07:00
.gitmodules Merge branch 'adafruit:main' into issue-10191 2025-04-29 09:26:39 -07:00
.mailmap More updates to mailmap based on git shortlog inspection 2024-07-26 12:40:04 -05:00
.pre-commit-config.yaml clean up .pre-commit-config.yaml 2025-03-30 19:27:01 -04:00
.readthedocs.yml non-conflict merge changes 2024-09-05 14:54:18 -04:00
.rosie.yml Add license to some obvious files. 2020-07-06 19:16:25 +01:00
ACKNOWLEDGEMENTS Merge MicroPython 1.12 into CircuitPython 2021-05-03 14:01:18 -07:00
ACKNOWLEDGEMENTS.license Add license to some obvious files. 2020-07-06 19:16:25 +01:00
BUILDING.md rename ports/nrf to ports/nordic 2024-03-19 17:36:57 -04:00
CODE_OF_CONDUCT.md Fix up Contributor Covenant homepage link 2023-04-10 15:33:38 +12:00
conf.py Resolve Python Logger warnings 2025-05-14 10:55:23 -07:00
CONTRIBUTING.md fix documentation typo 2024-08-23 03:42:31 +00:00
LICENSE non-conflict merge changes 2024-09-05 14:54:18 -04:00
LICENSE_MicroPython non-conflict merge changes 2024-09-05 14:54:18 -04:00
main.c Fix -Wold-style-definion errors in the raspberrypi port 2025-05-25 09:16:00 +02:00
Makefile Fix wrong python command in Makefile 2025-05-10 20:15:48 +02:00
MANIFEST.in-stubs refine stubs-building procedure 2021-06-22 08:59:05 -05:00
pyproject.toml Switch to ruff like MicroPython 2025-02-05 11:09:15 -08:00
README.rst Document safe mode wait in README. 2025-01-02 21:51:11 +00:00
README.rst-stubs Actually reduce the README text for the stubs package 2021-06-24 13:41:01 -05:00
requirements-ci.txt only install awscli when required 2023-01-16 17:03:39 +05:30
requirements-dev.txt require specific ruff version 2025-02-06 19:03:15 -06:00
requirements-doc.txt pin sphinx temporarily while debugging doc build 2024-10-10 18:48:22 -04:00
runtime.py Switch to ruff like MicroPython 2025-02-05 11:09:15 -08:00
setup.py-stubs Fix version in circuitpython-stubs 2025-01-10 15:24:05 -06:00
WEBUSB_README.md Rename esp32s2 port to espressif 2021-09-13 16:44:55 -07:00

CircuitPython
=============

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

|Build Status| |Doc Status| |License| |Discord| |Weblate|

`circuitpython.org <https://circuitpython.org>`__ \| `Get CircuitPython <#get-circuitpython>`__ \|
`Documentation <#documentation>`__ \| `Contributing <#contributing>`__ \|
`Branding <#branding>`__ \| `Differences from Micropython <#differences-from-micropython>`__ \|
`Project Structure <#project-structure>`__

**CircuitPython** is a *beginner friendly*, open source version of Python for tiny, inexpensive
computers called microcontrollers.

This package contains the "stubs", or type definitions for CircuitPython.  With some advanced
editors and other tools, this information can be identify TypeErrors, AttributeErrors, and other
problems before you deploy your code to a device and can even help autocomplete your code.

.. |Build Status| image:: https://github.com/adafruit/circuitpython/workflows/Build%20CI/badge.svg
   :target: https://github.com/adafruit/circuitpython/actions?query=branch%3Amain
.. |Doc Status| image:: https://readthedocs.org/projects/circuitpython/badge/?version=latest
   :target: http://circuitpython.readthedocs.io/
.. |Discord| image:: https://img.shields.io/discord/327254708534116352.svg
   :target: https://adafru.it/discord
.. |License| image:: https://img.shields.io/badge/License-MIT-brightgreen.svg
   :target: https://choosealicense.com/licenses/mit/
.. |Weblate| image:: https://hosted.weblate.org/widgets/circuitpython/-/svg-badge.svg
   :target: https://hosted.weblate.org/engage/circuitpython/?utm_source=widget