Skip to content

Commit ef0ce0d

Browse files
authored
Merge pull request #43 from adafruit/main
Update from adafruit main
2 parents afa508c + be9e045 commit ef0ce0d

File tree

197 files changed

+6205
-508
lines changed

Some content is hidden

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

197 files changed

+6205
-508
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Thanks! for testing out CircuitPython. Now that you have got a problem...
11+
you can file a bug report for it. Feel free to modify the below format to better
12+
suit your issue. :) -->
13+
14+
**Firmware**
15+
16+
<!-- Include the version of CircuitPython you're running. You can see it in the
17+
`boot_out.txt` file, as well as in the REPL. -->
18+
19+
```python
20+
Adafruit CircuitPython 6.2.0-beta.2 on 2021-03-01; Raspberry Pi Pico with rp2040
21+
```
22+
23+
**Code/REPL**
24+
25+
<!-- Include your code that reproduces the bug here. Try to distill down to the
26+
minimum possible to reproduce. -->
27+
28+
```python
29+
import busio, bitbangio
30+
i2c = bitbangio.I2C(board.GP1, board.GP0)
31+
```
32+
33+
**Behavior**
34+
35+
<!-- What happens when you run the code above? Include any error messages. -->
36+
37+
```python
38+
Traceback (most recent call last):
39+
File "<stdin>", line 1, in <module>
40+
TimeoutError: Clock stretch too long
41+
```
42+
43+
**Description**
44+
45+
<!-- Optionally, describe the issue in more detail. Here are some examples: -->
46+
47+
- Error while using i2c...
48+
- Only happens when...
49+
- might be related to #4291...
50+
51+
**Additional Info**
52+
53+
<!-- Optionally, add any other information like hardware connection, scope output etc.
54+
If you have already done some debugging, mention it here. -->
55+
56+
Removing [this](url) line resolves the issue.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
contact_links:
2+
- name: Adafruit Forum
3+
url: https://forums.adafruit.com/
4+
about: Official Adafruit technical support forum. Good for getting help on getting a project working.
5+
- name: Adafruit Discord
6+
url: https://adafru.it/discord
7+
about: Unofficial chat with many helpful folks and normally prompt replies.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
<!-- We are always adding new features and enhancements to CircuitPython 🚀
11+
and would love ❤ to see what new challenge you have got for us... 🙂 -->

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
working-directory: tests
8282
- name: Print failure info
8383
run: |
84+
shopt -s nullglob;
8485
for exp in *.exp;
8586
do testbase=$(basename $exp .exp);
8687
echo -e "\nFAILURE $testbase";
@@ -449,6 +450,8 @@ jobs:
449450
- "espressif_kaluga_1"
450451
- "espressif_saola_1_wroom"
451452
- "espressif_saola_1_wrover"
453+
- "franzininho_wifi_wroom"
454+
- "franzininho_wifi_wrover"
452455
- "lilygo_ttgo_t8_s2_st7789"
453456
- "microdev_micro_s2"
454457
- "muselab_nanoesp32_s2"
@@ -475,7 +478,7 @@ jobs:
475478
id: idf-cache
476479
with:
477480
path: ${{ github.workspace }}/.idf_tools
478-
key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/esp32s2/esp-idf/HEAD') }}-20210128
481+
key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/esp32s2/esp-idf/HEAD') }}-20210304
479482
- name: Clone IDF submodules
480483
run: |
481484
(cd $IDF_PATH && git submodule update --init)

README.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,9 @@ Behavior
113113
- ``code.py`` (or ``main.py``) is run after every reload until it
114114
finishes or is interrupted. After it is done running, the vm and
115115
hardware is reinitialized. **This means you cannot read state from**
116-
``code.py`` **in the REPL anymore.** CircuitPython's goal for this
116+
``code.py`` **in the REPL anymore, as the REPL is a fresh vm.** CircuitPython's goal for this
117117
change includes reducing confusion about pins and memory being used.
118-
- After ``code.py`` the REPL can be entered by pressing any key. It no
119-
longer shares state with ``code.py`` so it is a fresh vm.
118+
- After the main code is finished the REPL can be entered by pressing any key.
120119
- Autoreload state will be maintained across reload.
121120
- Adds a safe mode that does not run user code after a hard crash or
122121
brown out. The hope is that this will make it easier to fix code that
@@ -126,8 +125,7 @@ Behavior
126125
- RGB status LED indicating CircuitPython state, and errors through a sequence of colored flashes.
127126
- Re-runs ``code.py`` or other main file after file system writes over USB mass storage. (Disable with
128127
``supervisor.disable_autoreload()``)
129-
- Entering the REPL after the main code is finished requires a key press which enters the REPL and
130-
disables autoreload.
128+
- Autoreload is disabled while the REPL is active.
131129
- Main is one of these: ``code.txt``, ``code.py``, ``main.py``,
132130
``main.txt``
133131
- Boot is one of these: ``settings.txt``, ``settings.py``, ``boot.py``,

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
# directories to ignore when looking for source files.
151151
exclude_patterns = ["**/build*",
152152
".git",
153+
".github",
153154
".env",
154155
".venv",
155156
".direnv",

lib/tinyusb

Submodule tinyusb updated 145 files

locale/ID.po

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,10 +1061,6 @@ msgstr ""
10611061
msgid "Group already used"
10621062
msgstr "Grup sudah digunakan"
10631063

1064-
#: shared-module/displayio/Group.c
1065-
msgid "Group full"
1066-
msgstr "Grup penuh"
1067-
10681064
#: ports/mimxrt10xx/common-hal/busio/SPI.c ports/stm/common-hal/busio/I2C.c
10691065
#: ports/stm/common-hal/busio/SPI.c ports/stm/common-hal/canio/CAN.c
10701066
#: ports/stm/common-hal/sdioio/SDCard.c
@@ -1105,7 +1101,7 @@ msgid "IV must be %d bytes long"
11051101
msgstr "Panjang IV harus %d byte"
11061102

11071103
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
1108-
msgid "In buffer elements must be 4 bytes long or less"
1104+
msgid "In-buffer elements must be <= 4 bytes long"
11091105
msgstr ""
11101106

11111107
#: py/persistentcode.c
@@ -1714,10 +1710,6 @@ msgstr ""
17141710
msgid "Operation timed out"
17151711
msgstr ""
17161712

1717-
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
1718-
msgid "Out buffer elements must be 4 bytes long or less"
1719-
msgstr ""
1720-
17211713
#: ports/esp32s2/bindings/espidf/__init__.c ports/esp32s2/esp_error.c
17221714
msgid "Out of memory"
17231715
msgstr ""
@@ -1726,6 +1718,10 @@ msgstr ""
17261718
msgid "Out of sockets"
17271719
msgstr ""
17281720

1721+
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
1722+
msgid "Out-buffer elements must be <= 4 bytes long"
1723+
msgstr ""
1724+
17291725
#: shared-bindings/bitops/__init__.c
17301726
#, c-format
17311727
msgid "Output buffer must be at least %d bytes"
@@ -1751,6 +1747,14 @@ msgstr ""
17511747
"Frekuensi PWM tidak dapat ditulis ketika variabel_frequency Salah pada "
17521748
"konstruksi."
17531749

1750+
#: ports/raspberrypi/common-hal/countio/Counter.c
1751+
msgid "PWM slice already in use"
1752+
msgstr ""
1753+
1754+
#: ports/raspberrypi/common-hal/countio/Counter.c
1755+
msgid "PWM slice channel A already in use"
1756+
msgstr ""
1757+
17541758
#: ports/mimxrt10xx/common-hal/displayio/ParallelBus.c
17551759
#: ports/raspberrypi/common-hal/displayio/ParallelBus.c
17561760
#: ports/stm/common-hal/displayio/ParallelBus.c
@@ -1788,6 +1792,10 @@ msgstr "Pin tidak mempunya kemampuan untuk ADC (Analog Digital Converter)"
17881792
msgid "Pin is input only"
17891793
msgstr ""
17901794

1795+
#: ports/raspberrypi/common-hal/countio/Counter.c
1796+
msgid "Pin must be on PWM Channel B"
1797+
msgstr ""
1798+
17911799
#: ports/atmel-samd/common-hal/countio/Counter.c
17921800
msgid "Pin must support hardware interrupts"
17931801
msgstr "Pin harus mendukung interupsi perangkat keras"
@@ -1807,6 +1815,10 @@ msgstr ""
18071815
"ideal. Jika ini tidak dapat dihindari, berikan allow_inefficient=True ke "
18081816
"konstruktor"
18091817

1818+
#: ports/raspberrypi/common-hal/rotaryio/IncrementalEncoder.c
1819+
msgid "Pins must be sequential"
1820+
msgstr ""
1821+
18101822
#: ports/raspberrypi/common-hal/audiopwmio/PWMAudioOut.c
18111823
msgid "Pins must share PWM slice"
18121824
msgstr ""
@@ -3783,6 +3795,10 @@ msgstr ""
37833795
msgid "pressing both buttons at start up.\n"
37843796
msgstr ""
37853797

3798+
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
3799+
msgid "pull masks conflict with direction masks"
3800+
msgstr ""
3801+
37863802
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
37873803
msgid "pull_threshold must be between 1 and 32"
37883804
msgstr ""
@@ -4284,6 +4300,9 @@ msgstr ""
42844300
msgid "zi must be of shape (n_section, 2)"
42854301
msgstr ""
42864302

4303+
#~ msgid "Group full"
4304+
#~ msgstr "Grup penuh"
4305+
42874306
#~ msgid "SDA or SCL needs a pull up"
42884307
#~ msgstr "SDA atau SCL membutuhkan pull up"
42894308

locale/circuitpython.pot

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,10 +1042,6 @@ msgstr ""
10421042
msgid "Group already used"
10431043
msgstr ""
10441044

1045-
#: shared-module/displayio/Group.c
1046-
msgid "Group full"
1047-
msgstr ""
1048-
10491045
#: ports/mimxrt10xx/common-hal/busio/SPI.c ports/stm/common-hal/busio/I2C.c
10501046
#: ports/stm/common-hal/busio/SPI.c ports/stm/common-hal/canio/CAN.c
10511047
#: ports/stm/common-hal/sdioio/SDCard.c
@@ -1722,6 +1718,14 @@ msgid ""
17221718
"PWM frequency not writable when variable_frequency is False on construction."
17231719
msgstr ""
17241720

1721+
#: ports/raspberrypi/common-hal/countio/Counter.c
1722+
msgid "PWM slice already in use"
1723+
msgstr ""
1724+
1725+
#: ports/raspberrypi/common-hal/countio/Counter.c
1726+
msgid "PWM slice channel A already in use"
1727+
msgstr ""
1728+
17251729
#: ports/mimxrt10xx/common-hal/displayio/ParallelBus.c
17261730
#: ports/raspberrypi/common-hal/displayio/ParallelBus.c
17271731
#: ports/stm/common-hal/displayio/ParallelBus.c
@@ -1759,6 +1763,10 @@ msgstr ""
17591763
msgid "Pin is input only"
17601764
msgstr ""
17611765

1766+
#: ports/raspberrypi/common-hal/countio/Counter.c
1767+
msgid "Pin must be on PWM Channel B"
1768+
msgstr ""
1769+
17621770
#: ports/atmel-samd/common-hal/countio/Counter.c
17631771
msgid "Pin must support hardware interrupts"
17641772
msgstr ""
@@ -1775,6 +1783,10 @@ msgid ""
17751783
"constructor"
17761784
msgstr ""
17771785

1786+
#: ports/raspberrypi/common-hal/rotaryio/IncrementalEncoder.c
1787+
msgid "Pins must be sequential"
1788+
msgstr ""
1789+
17781790
#: ports/raspberrypi/common-hal/audiopwmio/PWMAudioOut.c
17791791
msgid "Pins must share PWM slice"
17801792
msgstr ""
@@ -3731,6 +3743,10 @@ msgstr ""
37313743
msgid "pressing both buttons at start up.\n"
37323744
msgstr ""
37333745

3746+
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
3747+
msgid "pull masks conflict with direction masks"
3748+
msgstr ""
3749+
37343750
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
37353751
msgid "pull_threshold must be between 1 and 32"
37363752
msgstr ""

locale/cs.po

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,10 +1045,6 @@ msgstr ""
10451045
msgid "Group already used"
10461046
msgstr ""
10471047

1048-
#: shared-module/displayio/Group.c
1049-
msgid "Group full"
1050-
msgstr ""
1051-
10521048
#: ports/mimxrt10xx/common-hal/busio/SPI.c ports/stm/common-hal/busio/I2C.c
10531049
#: ports/stm/common-hal/busio/SPI.c ports/stm/common-hal/canio/CAN.c
10541050
#: ports/stm/common-hal/sdioio/SDCard.c
@@ -1089,7 +1085,7 @@ msgid "IV must be %d bytes long"
10891085
msgstr ""
10901086

10911087
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
1092-
msgid "In buffer elements must be 4 bytes long or less"
1088+
msgid "In-buffer elements must be <= 4 bytes long"
10931089
msgstr ""
10941090

10951091
#: py/persistentcode.c
@@ -1690,10 +1686,6 @@ msgstr ""
16901686
msgid "Operation timed out"
16911687
msgstr ""
16921688

1693-
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
1694-
msgid "Out buffer elements must be 4 bytes long or less"
1695-
msgstr ""
1696-
16971689
#: ports/esp32s2/bindings/espidf/__init__.c ports/esp32s2/esp_error.c
16981690
msgid "Out of memory"
16991691
msgstr ""
@@ -1702,6 +1694,10 @@ msgstr ""
17021694
msgid "Out of sockets"
17031695
msgstr ""
17041696

1697+
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
1698+
msgid "Out-buffer elements must be <= 4 bytes long"
1699+
msgstr ""
1700+
17051701
#: shared-bindings/bitops/__init__.c
17061702
#, c-format
17071703
msgid "Output buffer must be at least %d bytes"
@@ -1725,6 +1721,14 @@ msgid ""
17251721
"PWM frequency not writable when variable_frequency is False on construction."
17261722
msgstr ""
17271723

1724+
#: ports/raspberrypi/common-hal/countio/Counter.c
1725+
msgid "PWM slice already in use"
1726+
msgstr ""
1727+
1728+
#: ports/raspberrypi/common-hal/countio/Counter.c
1729+
msgid "PWM slice channel A already in use"
1730+
msgstr ""
1731+
17281732
#: ports/mimxrt10xx/common-hal/displayio/ParallelBus.c
17291733
#: ports/raspberrypi/common-hal/displayio/ParallelBus.c
17301734
#: ports/stm/common-hal/displayio/ParallelBus.c
@@ -1762,6 +1766,10 @@ msgstr ""
17621766
msgid "Pin is input only"
17631767
msgstr ""
17641768

1769+
#: ports/raspberrypi/common-hal/countio/Counter.c
1770+
msgid "Pin must be on PWM Channel B"
1771+
msgstr ""
1772+
17651773
#: ports/atmel-samd/common-hal/countio/Counter.c
17661774
msgid "Pin must support hardware interrupts"
17671775
msgstr ""
@@ -1778,6 +1786,10 @@ msgid ""
17781786
"constructor"
17791787
msgstr ""
17801788

1789+
#: ports/raspberrypi/common-hal/rotaryio/IncrementalEncoder.c
1790+
msgid "Pins must be sequential"
1791+
msgstr ""
1792+
17811793
#: ports/raspberrypi/common-hal/audiopwmio/PWMAudioOut.c
17821794
msgid "Pins must share PWM slice"
17831795
msgstr ""
@@ -3734,6 +3746,10 @@ msgstr ""
37343746
msgid "pressing both buttons at start up.\n"
37353747
msgstr ""
37363748

3749+
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
3750+
msgid "pull masks conflict with direction masks"
3751+
msgstr ""
3752+
37373753
#: ports/raspberrypi/bindings/rp2pio/StateMachine.c
37383754
msgid "pull_threshold must be between 1 and 32"
37393755
msgstr ""

0 commit comments

Comments
 (0)