Jeff Epler
606c75ab62
test must read data in binary mode
2022-08-12 08:34:33 -05:00
Jeff Epler
06f22cb59c
When reading data from a file into a str, check if it's utf-8
...
Otherwise, weird stuff can happen down the line when it is print()ed,
especially as it can break the webrepl of circuitpython.
2022-08-12 08:25:27 -05:00
Jeff Epler
76f03a2bee
Make keypad select/poll'able for better async
...
This allows a small wrapper class to be written
```py
class AsyncEventQueue:
def __init__(self, events):
self._events = events
async def __await__(self):
yield asyncio.core._io_queue.queue_read(self._events)
return self._events.get()
def __enter__(self):
return self
def __exit__(self, exc_type, exc_value, traceback):
pass
```
and used to just "await" the next event:
```py
async def key_task():
print("waiting for keypresses")
with keypad.KeyMatrix([board.D4], [board.D5]) as keys, AsyncEventQueue(keys.events) as ev:
while True:
print(await ev)
```
Because checking the empty status of the EventQueue does not enter
CircuitPython bytecode, it's assumed (but not measured) that this is
more efficient than an equivalent loop with an `await async.sleep(0)`
yield and introduces less latency than any non-zero sleep value.
2022-08-09 21:48:27 -05:00
Scott Shawcroft
f1826b054a
Merge pull request #6701 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2022-08-08 09:23:44 -07:00
Maxime Leroy
f00eac7e6e
Translated using Weblate (French)
...
Currently translated at 99.5% (996 of 1001 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2022-08-08 06:20:52 +02:00
Hosted Weblate
82a0af5ca4
Merge remote-tracking branch 'origin/main'
2022-08-08 02:14:17 +02:00
Scott Shawcroft
0ed84486f6
Merge pull request #6709 from ladyada/main
...
add default display to odroid go
2022-08-07 17:14:03 -07:00
lady ada
2cd9222e5e
add includes
2022-08-07 14:32:29 -04:00
lady ada
029b6b6fbe
add default display
2022-08-07 14:12:40 -04:00
Jonny Bergdahl
9571bab8f8
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (1001 of 1001 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-08-07 17:16:49 +02:00
Wellington Terumi Uemura
843ccb71c0
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (1001 of 1001 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-08-07 17:16:49 +02:00
Hosted Weblate
5e58fc1167
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/
2022-08-06 00:59:15 +02:00
Hosted Weblate
e9d10dfa38
Merge remote-tracking branch 'origin/main'
2022-08-06 00:59:12 +02:00
Scott Shawcroft
01f252d125
Merge pull request #6698 from tannewt/title_execution_status
...
Turn on title bar everywhere and enhance it
2022-08-05 15:59:07 -07:00
Scott Shawcroft
207311b02a
Merge branch 'main' into title_execution_status
2022-08-05 13:42:58 -07:00
Hosted Weblate
db9a9a1571
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/
2022-08-05 21:06:53 +02:00
Dan Halbert
8c10e09ba0
Merge pull request #6667 from jepler/esp-reserve-heap-for-idf
...
Add ability to reserve psram
2022-08-05 15:06:44 -04:00
Dan Halbert
7ab8a66cda
Merge pull request #6695 from tannewt/always_circuitpy
...
Get CIRCUITPY FATFS directly.
2022-08-05 11:51:35 -04:00
Dan Halbert
b92c3bbfb1
Merge pull request #6697 from tannewt/temp_redirect
...
Switch to temporary redirect for cp.local
2022-08-05 11:48:57 -04:00
Dan Halbert
9ab4843bd8
Merge pull request #6700 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2022-08-05 11:48:43 -04:00
River Wang
1e741f53fa
Translated using Weblate (Chinese (Pinyin))
...
Currently translated at 93.4% (932 of 997 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/zh_Latn/
2022-08-05 16:18:53 +02:00
Jonny Bergdahl
d61f9eee7f
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (997 of 997 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2022-08-05 16:18:53 +02:00
Wellington Terumi Uemura
7f600422b0
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (997 of 997 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2022-08-05 16:18:53 +02:00
Mark
faa34c1a0f
Merge pull request #6696 from gamblor21/fix-6576-spi_device
...
Check if CS parameter is DigitalInOut type
2022-08-04 22:24:49 -05:00
gamblor21
9b9f8de0ba
Changed error handling to use new routine
2022-08-04 19:34:12 -05:00
Scott Shawcroft
167108a91f
Fix builds with displayio but not terminalio
2022-08-04 16:34:25 -07:00
Scott Shawcroft
5e015001c0
Add supervisor.runtime.autoreload
...
This replaces supervisor.enable_autoreload() and
supervisor.disable_autoreload(). It also allows user code to get
the current autoreload state.
Replaces #5352 and part of #5414
2022-08-04 16:34:25 -07:00
Scott Shawcroft
e7d72b1ebe
Use libgcc from Arch on SAMD21 (it's smaller.)
...
Fixes #4705
2022-08-04 16:33:41 -07:00
Scott Shawcroft
eb7ddf52e6
Fix BLE workflow and add boot_out.txt UID
...
Fixes #6621
2022-08-04 16:33:10 -07:00
Scott Shawcroft
83cbbc9946
Add BLE status to title bar
2022-08-04 16:33:10 -07:00
Scott Shawcroft
3a2bcbc5c7
Enable title bar on all builds
...
* Tweak scroll area position so last line is complete and top is
under the title bar.
* Pick Blinka size based on the font to minimize unused space in
title bar. Related to #2791
* Update the title bar after terminal is started. Fixes #6078
Fixes #6668
2022-08-04 16:33:10 -07:00
Scott Shawcroft
577d53dda4
Add execution status into title bar
2022-08-04 16:33:09 -07:00
Scott Shawcroft
185d3e19ec
Switch to temporary redirect for cp.local
...
This prevents browsers from caching it. Thanks to MakerMelissa for
the suggestion.
2022-08-04 16:25:50 -07:00
gamblor21
0ca29fa213
Check if CS parameter is DigitalInOut type
2022-08-04 18:12:27 -05:00
Scott Shawcroft
125b276af0
Get CIRCUITPY FATFS directly.
...
Otherwise, you may actually get a non-root filesystem.
Fixes #6575
2022-08-04 16:06:27 -07:00
Scott Shawcroft
e0cb8ef17e
Merge pull request #6694 from dhalbert/esp32-no-psram
...
ESP32 no psram support; other ESP32 cleanup
2022-08-04 11:49:39 -07:00
Scott Shawcroft
3707b54e3b
Merge pull request #6672 from bill88t/main
...
Add Waveshare ESP32-S2-Pico
2022-08-04 11:09:59 -07:00
Dan Halbert
202fac59f8
ESP32 fixes for no PSRAM; some cleanup
2022-08-04 13:44:52 -04:00
Dan Halbert
d4e8c19b49
merge from main
2022-08-04 12:43:23 -04:00
Jeff Epler
82be75adb5
Add ability to reserve psram
...
.. the primary user of which will be the camera, since the framebuffers
must be allocated via esp-idf allocation function and never from the
gc heap.
A board can have a default value, and the value can also be set in the
/.env file using the key CIRCUITPY_RESERVED_PSRAM with the value being
the reserved size in bytes.
Co-authored-by: Dan Halbert <halbert@adafruit.com>
2022-08-03 16:19:40 -05:00
bill88t
68bb6b9988
ran precommit
2022-08-03 09:14:26 +03:00
Bill Sideris
efa3e40f90
Add the one obtained from esp
2022-08-03 08:48:28 +03:00
Scott Shawcroft
d659a3b457
Merge pull request #6690 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2022-08-02 22:41:45 -07:00
Dan Halbert
d3d5e36548
update adafruit/esp-idf for ESP32_ECO3_CACHE_LOCK_FIX fix
2022-08-02 22:37:06 -04:00
Dan Halbert
b027d111a9
remove custom console UART from sdkconfig-esp32.defaults
2022-08-02 22:00:59 -04:00
Dan Halbert
534a482d94
initial HUZZAH32 bring-up, with hacked pins
2022-08-02 21:47:46 -04:00
Hosted Weblate
fde916d4ac
Merge remote-tracking branch 'origin/main'
2022-08-03 03:36:41 +02:00
Dan Halbert
291994b7d6
Merge pull request #6686 from andywarburton/main
...
WebWorkFlow CSS Tweaks for edit.html
2022-08-02 21:36:37 -04:00
Hosted Weblate
c6e527d72e
Merge remote-tracking branch 'origin/main'
2022-08-03 03:35:06 +02:00
Dan Halbert
767234e79c
Merge pull request #6688 from tannewt/fix_esp32c3_paste
...
Fix C3 when pasting 128+ characters
2022-08-02 21:35:02 -04:00