Commit Graph

24102 Commits

Author SHA1 Message Date
Scott Shawcroft
0438d7fad1
Merge pull request #4910 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-06-23 14:02:03 -07:00
Hosted Weblate
b9b8757ca2
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-06-23 19:15:29 +02:00
Hosted Weblate
c0b28c4510
Merge remote-tracking branch 'origin/main' into main 2021-06-23 19:15:26 +02:00
hexthat
9f65ccc61f
Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (996 of 996 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-06-23 19:15:26 +02:00
Scott Shawcroft
a7e353b80e
Merge pull request #4897 from jepler/merge-1.16
Merge 1.16
2021-06-23 10:15:10 -07:00
Jeff Epler
4fd946682d another file to remove 2021-06-22 14:00:58 -05:00
Jeff Epler
47a6b13d63
Merge pull request #4906 from FoamyGuy/remove_duplicate_line
remove duplicate line in setup py
2021-06-22 07:41:25 -05:00
foamyguy
17cef0019a remove duplicate line in setup py 2021-06-21 20:14:50 -05:00
Scott Shawcroft
2548f865fe
Merge pull request #4902 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-06-21 17:57:37 -07:00
Jeff Epler
b1785eb3f1 finish copyright-notice suggestion 2021-06-21 19:52:08 -05:00
Jeff Epler
680ac9388f review suggestion: remove files 2021-06-21 19:51:03 -05:00
Jeff Epler
4401d73efd
Update tools/pyboard.py
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-06-21 19:49:56 -05:00
Hosted Weblate
f9524469b3
Merge remote-tracking branch 'origin/main' into main 2021-06-22 00:28:37 +02:00
Scott Shawcroft
0f54124e08
Merge pull request #4876 from t-ikegami/fix_TileGrid_refresh_areas
Fix partial refresh of displayio.TileGrid
2021-06-21 15:28:34 -07:00
Hosted Weblate
c282e69486
Merge remote-tracking branch 'origin/main' into main 2021-06-22 00:27:16 +02:00
Wellington Terumi Uemura
d372e9561c
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (996 of 996 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-06-22 00:27:16 +02:00
Scott Shawcroft
44d471a5ab
Merge pull request #4861 from FoamyGuy/upload_stubs_action
Stubs upload actions
2021-06-21 15:27:07 -07:00
Hosted Weblate
723266b33f
Merge remote-tracking branch 'origin/main' into main 2021-06-21 15:39:51 +02:00
Jonny Bergdahl
d283034ad2
Translated using Weblate (Swedish)
Currently translated at 100.0% (996 of 996 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-06-21 15:39:51 +02:00
Dan Halbert
624a53adee
Merge pull request #4900 from hathach/fix-nrf-control-race-condition
update tinyusb to fix nrf control race condition
2021-06-21 09:39:43 -04:00
Hosted Weblate
a9a4d2e613
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-06-19 22:18:06 +02:00
Hosted Weblate
7dbd754416
Merge remote-tracking branch 'origin/main' into main 2021-06-19 22:18:04 +02:00
hexthat
4c5bccba0a
Translated using Weblate (Chinese (Pinyin))
Currently translated at 100.0% (994 of 994 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2021-06-19 22:18:03 +02:00
Zoltán Vörös
f19dbf637d
Translated using Weblate (German)
Currently translated at 75.8% (754 of 994 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/de/
2021-06-19 22:18:03 +02:00
Limor "Ladyada" Fried
6dbeb75a4f
Merge pull request #4880 from jepler/esp32s2-imagecapture
Esp32s2: implement ParallelImageCapture
2021-06-19 16:17:56 -04:00
foamyguy
c81f3fd789 Merge branch 'adafruit_main' into upload_stubs_action
# Conflicts:
#	setup.py
2021-06-19 12:36:13 -05:00
foamyguy
1fe38138e8 use scm_version for stubs. seperate stubs upload from S3 mpy-cross upload steps in actions. 2021-06-19 12:33:34 -05:00
hathach
b3a91220de fix build with esp32s2 2021-06-19 12:55:54 +07:00
Jeff Epler
a5876f4dea fix compile error on boards with inline asm 2021-06-18 16:59:48 -05:00
Jeff Epler
a703561402 remove docs added in merge 2021-06-18 16:02:44 -05:00
hathach
683304fd3c update tinyusb to fix nrf control race condition 2021-06-19 02:27:41 +07:00
Jeff Epler
198e3aded7 imagecapture: Fix doc markup, update docs for data_pins
Closes: #4896
2021-06-18 12:40:35 -05:00
Jeff Epler
fa29be5aea restore a redundant NULL-comparison, it silences compiler diagnostics 2021-06-18 11:24:39 -05:00
Jeff Epler
e1d7e46e88 fix keyboard interrupt 2021-06-18 11:15:51 -05:00
Jeff Epler
8647097078 remove micropython board 2021-06-18 10:59:52 -05:00
Jeff Epler
c50c05aa21 remove workflow file from micropython 2021-06-18 10:58:57 -05:00
Jeff Epler
7b46187024 Fix trailing whitespace 2021-06-18 10:58:30 -05:00
Jeff Epler
87d3740c64 Merge tag 'v1.16' 2021-06-18 10:54:19 -05:00
Damien George
7c51cb2307 all: Bump version to 1.16.
Signed-off-by: Damien George <damien@micropython.org>
2021-06-18 16:38:06 +10:00
Damien George
adf35cbab0 tests/float: Make bytes/bytearray construct tests work with obj repr C.
2.5 can be represented correctly in object representation C, but 2.3 cannot
(it is slightly truncated).

Signed-off-by: Damien George <damien@micropython.org>
2021-06-18 14:16:07 +10:00
Damien George
bc89cdeb45 py/gc: Only use no_sanitize_address attribute for GCC 4.8 and above.
It's not supported on older GCC versions.

Signed-off-by: Damien George <damien@micropython.org>
2021-06-18 14:15:37 +10:00
Damien George
eb7ae538f9 esp8266/boards/GENERIC_512K: Add custom minimal _boot.py.
Commit 0abf6f830c removed _boot.py from the
manifest for the GENERIC_512K board because the build does not include a
filesystem.  But the main code expects _boot.py to be there and prints an
error if it's not.  So add a custom _boot.py, which just sets the
gc.threshold().

Signed-off-by: Damien George <damien@micropython.org>
2021-06-18 14:13:18 +10:00
Damien George
4eb13c50cd esp32/machine_sdcard: Use deinit_p to deinit SD bus in SPI mode.
Fixes issue #7352.

Signed-off-by: Damien George <damien@micropython.org>
2021-06-18 09:55:22 +10:00
Mike Causer
bc7822d8e9 drivers/display/ssd1306.py: Add support for 72x40 displays.
The 72x40 OLED requires selecting the internal IREF, as opposed to the
default external IREF.  This is an undocumented feature in the SSD1306
datasheet, but is present in the SSD1315 datasheet.  It's possible the
72x40 OLED is actually using the newer SSD1315 controller.  Sending the
IREF select command to SSD1306 displays has no effect on them, so it's
added to the init_display() instead of wrapping in an "if width = 72".

Also tested on a 128x64 OLED using the SSD1315 controller (smaller ribbon
cable) and the proposed change has no effect on the display, as the module
comes with the correct current limiting resistor.  Internal and external
IREF work the same.

Fixes issue #7281.
2021-06-17 18:54:32 +10:00
Jonathan Hogg
89945b1989 esp32/machine_hw_spi: Allow None for unused pins in initializer.
Make the hardware SPI initializer method match the `init()` method by 
allowing `None` to be given for `sck`/`mosi`/`miso` to specify an unused 
signal.
2021-06-17 18:52:22 +10:00
Thomas Wenrich
364670ecf1 docs/esp32: Document WLAN "reconnects" config option. 2021-06-17 18:48:17 +10:00
Thomas Wenrich
060066804a esp32/modnetwork: Add "reconnects" option to WLAN STA interface.
This adds a wlan.config(reconnects=N) option to set the number of reconnect
attempts that will be made if the WLAN connection goes down.  The default
is N=-1 (infinite retries, current behavior).  Setting
wlan.config(reconnects=0) will disable the reconnect attempts.

A nice side effect of reconnects=0 is that wlan.status() will report the
disconnect reason now.  See related issue #5326.
2021-06-17 18:48:06 +10:00
Tobias Eydam
48437cec45 esp32/network_lan: Add Ethernet support for IDF v4.1 and above.
Ethernet-PHYs from ESP-IDF (LAN8720, IP101, RTL8201, DP83848) are now
supported in IDF v4.1 and above.  PHY_KSZ8041 is only for ESP-IDF 4.3 and
above.  ESP32S2 is not supported.

Signed-off-by: Tobias Eydam <eydam-prototyping@outlook.com>
2021-06-17 15:36:14 +10:00
Damien George
8107c9b75b extmod/nimble: Remove TODO comment about notify_custom freeing om.
The comments in NimBLE for ble_gattc_notify_custom() state that "This
function consumes the supplied mbuf regardless of the outcome.".  And
inspection of NimBLE code shows that this is the case.  So the comment can
be removed.

Signed-off-by: Damien George <damien@micropython.org>
2021-06-17 14:54:04 +10:00
Damien George
514bf1a191 extmod/uasyncio: Fix race with cancelled task waiting on finished task.
This commit fixes a problem with a race between cancellation of task A and
completion of task B, when A waits on B.  If task B completes just before
task A is cancelled then the cancellation of A does not work.  Instead,
the CancelledError meant to cancel A gets passed through to B (that's
expected behaviour) but B handles it as a "Task exception wasn't retrieved"
scenario, printing out such a message (this is because finished tasks point
their "coro" attribute to themselves to indicate they are done, and
implement the throw() method, but that method inadvertently catches the
CancelledError).  The correct behaviour is for B to bounce that
CancelledError back out.

This bug is mainly seen when wait_for() is used, and in that context the
symptoms are:
- occurs when using wait_for(T, S), if the task T being waited on finishes
  at exactly the same time as the wait-for timeout S expires
- task T will have run to completion
- the "Task exception wasn't retrieved message" is printed with
  "<class 'CancelledError'>" as the error (ie no traceback)
- the wait_for(T, S) call never returns (it's never put back on the
  uasyncio run queue) and all tasks waiting on this are blocked forever
  from running
- uasyncio otherwise continues to function and other tasks continue to be
  scheduled as normal

The fix here reworks the "waiting" attribute of Task to be called "state"
and uses it to indicate whether a task is: running and not awaited on,
running and awaited on, finished and not awaited on, or finished and
awaited on.  This means the task does not need to point "coro" to itself to
indicate finished, and also allows removal of the throw() method.

A benefit of this is that "Task exception wasn't retrieved" messages can go
back to being able to print the name of the coroutine function.

Fixes issue #7386.

Signed-off-by: Damien George <damien@micropython.org>
2021-06-16 13:02:37 +10:00