Skip to content

Commit 22d67b4

Browse files
authored
Merge pull request #10 from adafruit/main
updating my branch
2 parents 73ce75c + f6aee98 commit 22d67b4

File tree

277 files changed

+24993
-3826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+24993
-3826
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ jobs:
195195
- "itsybitsy_m4_express"
196196
- "itsybitsy_nrf52840_express"
197197
- "kicksat-sprite"
198+
- "loc_ber_m4_base_board"
198199
- "makerdiary_nrf52840_mdk"
199200
- "makerdiary_nrf52840_mdk_usb_dongle"
200201
- "meowbit_v121"
@@ -237,6 +238,8 @@ jobs:
237238
- "pyruler"
238239
- "robohatmm1_m4"
239240
- "sam32"
241+
- "same54_xplained"
242+
- "seeeduino_wio_terminal"
240243
- "seeeduino_xiao"
241244
- "serpente"
242245
- "shirtty"
@@ -367,6 +370,7 @@ jobs:
367370
board:
368371
- "espressif_saola_1_wroom"
369372
- "espressif_saola_1_wrover"
373+
- "unexpectedmaker_feathers2"
370374

371375
steps:
372376
- name: Set up Python 3.8

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22
Please note that this project is released with a
3-
[Contributor Code of Conduct](https://github.com/adafruit/circuitpython/blob/master/CODE_OF_CONDUCT.md).
3+
[Contributor Code of Conduct](https://github.com/adafruit/circuitpython/blob/main/CODE_OF_CONDUCT.md).
44
By participating in this project you agree to abide by its terms. Participation
55
covers any forum used to converse about CircuitPython including unofficial and official spaces. Failure to do
66
so will result in corrective actions such as time out or ban from the project.

Makefile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,49 @@ stubs:
243243
update-frozen-libraries:
244244
@echo "Updating all frozen libraries to latest tagged version."
245245
cd frozen; for library in *; do cd $$library; ../../tools/git-checkout-latest-tag.sh; cd ..; done
246+
247+
one-of-each: samd21 samd51 esp32s2 litex mimxrt10xx nrf stm
248+
249+
samd21:
250+
$(MAKE) -C ports/atmel-samd BOARD=trinket_m0
251+
252+
samd51:
253+
$(MAKE) -C ports/atmel-samd BOARD=feather_m4_express
254+
255+
esp32s2:
256+
$(MAKE) -C ports/esp32s2 BOARD=espressif_saola_1_wroom
257+
258+
litex:
259+
$(MAKE) -C ports/litex BOARD=fomu
260+
261+
mimxrt10xx:
262+
$(MAKE) -C ports/mimxrt10xx BOARD=feather_mimxrt1011
263+
264+
nrf:
265+
$(MAKE) -C ports/nrf BOARD=feather_nrf52840_express
266+
267+
stm:
268+
$(MAKE) -C ports/stm BOARD=feather_stm32f405_express
269+
270+
clean-one-of-each: clean-samd21 clean-samd51 clean-esp32s2 clean-litex clean-mimxrt10xx clean-nrf clean-stm
271+
272+
clean-samd21:
273+
$(MAKE) -C ports/atmel-samd BOARD=trinket_m0 clean
274+
275+
clean-samd51:
276+
$(MAKE) -C ports/atmel-samd BOARD=feather_m4_express clean
277+
278+
clean-esp32s2:
279+
$(MAKE) -C ports/esp32s2 BOARD=espressif_saola_1_wroom clean
280+
281+
clean-litex:
282+
$(MAKE) -C ports/litex BOARD=fomu clean
283+
284+
clean-mimxrt10xx:
285+
$(MAKE) -C ports/mimxrt10xx BOARD=feather_mimxrt1011 clean
286+
287+
clean-nrf:
288+
$(MAKE) -C ports/nrf BOARD=feather_nrf52840_express clean
289+
290+
clean-stm:
291+
$(MAKE) -C ports/stm BOARD=feather_stm32f405_express clean

README.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ Contributing
5555
------------
5656

5757
See
58-
`CONTRIBUTING.md <https://github.com/adafruit/circuitpython/blob/master/CONTRIBUTING.md>`__
58+
`CONTRIBUTING.md <https://github.com/adafruit/circuitpython/blob/main/CONTRIBUTING.md>`__
5959
for full guidelines but please be aware that by contributing to this
6060
project you are agreeing to the `Code of
61-
Conduct <https://github.com/adafruit/circuitpython/blob/master/CODE_OF_CONDUCT.md>`__.
61+
Conduct <https://github.com/adafruit/circuitpython/blob/main/CODE_OF_CONDUCT.md>`__.
6262
Contributors who follow the `Code of
63-
Conduct <https://github.com/adafruit/circuitpython/blob/master/CODE_OF_CONDUCT.md>`__
63+
Conduct <https://github.com/adafruit/circuitpython/blob/main/CODE_OF_CONDUCT.md>`__
6464
are welcome to submit pull requests and they will be promptly reviewed
6565
by project admins. Please join the
6666
`Discord <https://adafru.it/discord>`__ too.
@@ -96,7 +96,6 @@ CircuitPython:
9696

9797
- Supports native USB on all boards, allowing file editing without special tools.
9898
- Supports only SAMD21, SAMD51, nRF52840, CXD56, STM32F4 and i.MX RT ports.
99-
- Tracks MicroPython's releases (not master).
10099
- Floats (aka decimals) are enabled for all builds.
101100
- Error messages are translated into 10+ languages.
102101
- Does not support concurrency within Python (including interrupts and threading). Some concurrency
@@ -211,8 +210,8 @@ The remaining port directories not listed above are in the repo to maintain comp
211210

212211
`back to top <#circuitpython>`__
213212

214-
.. |Build Status| image:: https://travis-ci.com/adafruit/circuitpython.svg?branch=master
215-
:target: https://travis-ci.org/adafruit/circuitpython
213+
.. |Build Status| image:: https://github.com/adafruit/circuitpython/workflows/Build%20CI/badge.svg
214+
:target: https://github.com/adafruit/circuitpython/actions?query=branch%3Amain
216215
.. |Doc Status| image:: https://readthedocs.org/projects/circuitpython/badge/?version=latest
217216
:target: http://circuitpython.readthedocs.io/
218217
.. |Discord| image:: https://img.shields.io/discord/327254708534116352.svg

conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,13 @@
391391
def generate_redirects(app):
392392
path = os.path.join(app.srcdir, app.config.redirects_file)
393393
if not os.path.exists(path):
394-
app.info("Could not find redirects file at '%s'" % path)
394+
logging.error("Could not find redirects file at '%s'" % path)
395395
return
396396

397-
if not type(app.builder) == builders.StandaloneHTMLBuilder:
397+
if not isinstance(app.builder, builders.StandaloneHTMLBuilder):
398398
logging.warn("The 'sphinxcontib-redirects' plugin is only supported "
399-
"by the 'html' builder. Skipping...")
399+
"by the 'html' builder and subclasses. Skipping...")
400+
logging.warn(f"Builder is {app.builder.name} ({type(app.builder)})")
400401
return
401402

402403
with open(path) as redirects:

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The latest documentation can be found at:
55
http://circuitpython.readthedocs.io/en/latest/
66

77
The documentation you see there is generated from the files in the whole tree:
8-
https://github.com/adafruit/circuitpython/tree/master
8+
https://github.com/adafruit/circuitpython/tree/main
99

1010
Building the documentation locally
1111
----------------------------------

docs/design_guide.rst

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
.. role:: strike
2+
13
Design Guide
24
============
35

46
This guide covers a variety of development practices for CircuitPython core and library APIs. These
57
APIs are both `built-into CircuitPython
6-
<https://github.com/adafruit/circuitpython/tree/master/shared-bindings>`_ and those that are
8+
<https://github.com/adafruit/circuitpython/tree/main/shared-bindings>`_ and those that are
79
`distributed on GitHub <https://github.com/search?utf8=%E2%9C%93&q=topic%3Acircuitpython&type=>`_
810
and in the `Adafruit <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_ and `Community
911
<https://github.com/adafruit/CircuitPython_Community_Bundle/>`_ bundles. Consistency with these
@@ -46,6 +48,41 @@ not have the ``adafruit_`` module or package prefix.
4648

4749
Both should have the CircuitPython repository topic on GitHub.
4850

51+
Terminology
52+
-----------
53+
54+
As our Code of Conduct states, we strive to use "welcoming and inclusive
55+
language." Whether it is in documentation or in code, the words we use matter.
56+
This means we disfavor language that due to historical and social context can
57+
make community members and potential community members feel unwelcome.
58+
59+
There are specific terms to avoid except where technical limitations require it.
60+
While specific cases may call for other terms, consider using these suggested
61+
terms first:
62+
63+
+--------------------+---------------------+
64+
| Preferred | Deprecated |
65+
+====================+=====================+
66+
| Main (device) | :strike:`Master` |
67+
+--------------------+---------------------+
68+
| Peripheral | :strike:`Slave` |
69+
+--------------------+ +
70+
| Sensor | |
71+
+--------------------+ +
72+
| Secondary (device) | |
73+
+--------------------+---------------------+
74+
| Denylist | :strike:`Blacklist` |
75+
+--------------------+---------------------+
76+
| Allowlist | :strike:`Whitelist` |
77+
+--------------------+---------------------+
78+
79+
Note that "technical limitations" refers e.g., to the situation where an
80+
upstream library or URL has to contain those substrings in order to work.
81+
However, when it comes to documentation and the names of parameters and
82+
properties in CircuitPython, we will use alternate terms even if this breaks
83+
tradition with past practice.
84+
85+
4986
.. _lifetime-and-contextmanagers:
5087

5188
Lifetime and ContextManagers

docs/porting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ as a natural "TODO" list. An example minimal build list is shown below:
6464
CIRCUITPY_ROTARYIO = 0
6565
CIRCUITPY_RTC = 0
6666
CIRCUITPY_FREQUENCYIO = 0
67-
CIRCUITPY_I2CSLAVE = 0
67+
CIRCUITPY_I2CPERIPHERAL = 0
6868
CIRCUITPY_DISPLAYIO = 0 # Requires SPI, PulseIO (stub ok)
6969
7070
# These modules are implemented in shared-module/ - they can be included in

0 commit comments

Comments
 (0)