Skip to content

Commit cac755b

Browse files
committed
Merge remote-tracking branch 'upstream/main' into esp-analog-hang
2 parents dc560f0 + 6cced49 commit cac755b

File tree

263 files changed

+635
-717
lines changed

Some content is hidden

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

263 files changed

+635
-717
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
python-version: 3.8
3636
- name: Install deps
3737
run: |
38+
sudo apt-get update
3839
sudo apt-get install -y eatmydata
3940
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64 latexmk texlive-fonts-recommended texlive-latex-recommended texlive-latex-extra
4041
pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinx-autoapi sphinxcontrib-svg2pdfconverter polib pyyaml astroid isort black awscli mypy

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ update-frozen-libraries:
265265
@echo "Updating all frozen libraries to latest tagged version."
266266
cd frozen; for library in *; do cd $$library; ../../tools/git-checkout-latest-tag.sh; cd ..; done
267267

268-
one-of-each: samd21 samd51 esp32s2 litex mimxrt10xx nrf stm
268+
one-of-each: samd21 litex mimxrt10xx nrf stm
269269

270270
samd21:
271271
$(MAKE) -C ports/atmel-samd BOARD=trinket_m0

docs/design_guide.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ SPI Example
421421
"""Widget's one register."""
422422
with self.spi_device as spi:
423423
spi.write(b'0x00')
424-
i2c.readinto(self.buf)
424+
spi.readinto(self.buf)
425425
return self.buf[0]
426426
427427
Use composition
@@ -462,7 +462,7 @@ like properties for state even if it sacrifices a bit of speed.
462462
Avoid allocations in drivers
463463
--------------------------------------------------------------------------------
464464

465-
Although Python doesn't require managing memory, its still a good practice for
465+
Although Python doesn't require managing memory, it's still a good practice for
466466
library writers to think about memory allocations. Avoid them in drivers if
467467
you can because you never know how much something will be called. Fewer
468468
allocations means less time spent cleaning up. So, where you can, prefer
@@ -471,7 +471,7 @@ object with methods that read or write into the buffer instead of creating new
471471
objects. Unified hardware API classes such as `busio.SPI` are design to read and
472472
write to subsections of buffers.
473473

474-
Its ok to allocate an object to return to the user. Just beware of causing more
474+
It's ok to allocate an object to return to the user. Just beware of causing more
475475
than one allocation per call due to internal logic.
476476

477477
**However**, this is a memory tradeoff so do not do it for large or rarely used
@@ -580,4 +580,4 @@ MicroPython compatibility
580580
--------------------------------------------------------------------------------
581581

582582
Keeping compatibility with MicroPython isn't a high priority. It should be done
583-
when its not in conflict with any of the above goals.
583+
when it's not in conflict with any of the above goals.

docs/drivers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Adafruit CircuitPython Library Bundle
1212
We provide a bundle of all our libraries to ease installation of drivers and
1313
their dependencies. The bundle is primarily geared to the Adafruit Express line
1414
of boards which feature a relatively large external flash. With Express boards,
15-
its easy to copy them all onto the filesystem. However, if you don't have
15+
it's easy to copy them all onto the filesystem. However, if you don't have
1616
enough space simply copy things over as they are needed.
1717

1818
- The Adafruit bundles are available on GitHub: <https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases>.

docs/library/hashlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ be implemented:
2020
* SHA1 - A previous generation algorithm. Not recommended for new usages,
2121
but SHA1 is a part of number of Internet standards and existing
2222
applications, so boards targeting network connectivity and
23-
interoperatiability will try to provide this.
23+
interoperability will try to provide this.
2424

2525
* MD5 - A legacy algorithm, not considered cryptographically secure. Only
26-
selected boards, targeting interoperatibility with legacy applications,
26+
selected boards, targeting interoperability with legacy applications,
2727
will offer this.
2828

2929
Constructors

docs/library/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ standard Python library.
2121
You may need to change your code later if you rely
2222
on any non-standard functionality they currently provide.
2323

24-
CircuitPython's goal long-term goalis that code written in CircuitPython
24+
CircuitPython's long-term goal is that code written in CircuitPython
2525
using Python standard libraries will be runnable on CPython without changes.
2626

2727
Some libraries below are not enabled on CircuitPython builds with
@@ -69,7 +69,7 @@ CircuitPython/MicroPython-specific libraries
6969
--------------------------------------------
7070

7171
Functionality specific to the CircuitPython/MicroPython implementation is available in
72-
the following libraries. These libraries may change signficantly or be removed in future
72+
the following libraries. These libraries may change significantly or be removed in future
7373
versions of CircuitPython.
7474

7575
.. toctree::

docs/library/network.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ parameter should be `id`.
7171
(password) required to access said service. There can be further
7272
arbitrary keyword-only parameters, depending on the networking medium
7373
type and/or particular device. Parameters can be used to: a)
74-
specify alternative service identifer types; b) provide additional
74+
specify alternative service identifier types; b) provide additional
7575
connection parameters. For various medium types, there are different
7676
sets of predefined/recommended parameters, among them:
7777

docs/porting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ request a safe mode state which prevents the supervisor from running user code
106106
while still allowing access to the REPL and other resources.
107107

108108
The core port initialization and reset methods are defined in
109-
``supervisor/port.c`` and should be the first to be implemented. Its required
109+
``supervisor/port.c`` and should be the first to be implemented. It's required
110110
that they be implemented in the ``supervisor`` directory within the port
111111
directory. That way, they are always in the expected place.
112112

docs/troubleshooting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ When CircuitPython restarts it will create a fresh empty ``CIRCUITPY`` filesyste
1313

1414
This often happens on Windows when the ``CIRCUITPY`` disk is not safely ejected
1515
before being reset by the button or being disconnected from USB. This can also
16-
happen on Linux and Mac OSX but its less likely.
16+
happen on Linux and Mac OSX but it's less likely.
1717

1818
.. caution:: To erase and re-create ``CIRCUITPY`` (for example, to correct a corrupted filesystem),
1919
follow one of the procedures below. It's important to note that **any files stored on the**
@@ -43,7 +43,7 @@ ValueError: Incompatible ``.mpy`` file.
4343

4444
This error occurs when importing a module that is stored as a ``mpy`` binary file
4545
(rather than a ``py`` text file) that was generated by a different version of
46-
CircuitPython than the one its being loaded into. Most versions are compatible
46+
CircuitPython than the one it's being loaded into. Most versions are compatible
4747
but, rarely they aren't. In particular, the ``mpy`` binary format changed between
4848
CircuitPython versions 1.x and 2.x, and will change again between 2.x and 3.x.
4949

locale/circuitpython.pot

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,11 @@ msgid "Prefix buffer must be on the heap"
15601560
msgstr ""
15611561

15621562
#: main.c
1563-
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
1563+
msgid "Press any key to enter the REPL. Use CTRL-D to reload.\n"
1564+
msgstr ""
1565+
1566+
#: main.c
1567+
msgid "Pretending to deep sleep until alarm, any key or file write.\n"
15641568
msgstr ""
15651569

15661570
#: shared-bindings/digitalio/DigitalInOut.c
@@ -2031,6 +2035,10 @@ msgstr ""
20312035
msgid "WiFi password must be between 8 and 63 characters"
20322036
msgstr ""
20332037

2038+
#: main.c
2039+
msgid "Woken up by alarm.\n"
2040+
msgstr ""
2041+
20342042
#: ports/nrf/common-hal/_bleio/PacketBuffer.c
20352043
msgid "Writes not supported on Characteristic"
20362044
msgstr ""

0 commit comments

Comments
 (0)