Commit graph

35745 commits

Author SHA1 Message Date
Andi Chandler
fca7a2ee0a
Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (992 of 992 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/en_GB/
2024-03-06 22:41:28 +01:00
Dan Halbert
b71c7b7d0b
Merge pull request #9012 from tannewt/correct_watchdog_time
Tweak watchdog
2024-03-06 16:41:21 -05:00
Scott Shawcroft
8d16e8e45f
Tweak watchdog
* Make setting timeout "feed" the watchdog.
* Fix #9010, timing on ESP
2024-03-06 12:17:31 -08:00
Scott Shawcroft
bf212542a4
Merge pull request #9011 from guutz/qtpy_m0_haxpress_W25Q32FV_spiflash
added W25Q32FV to EXTERNAL_FLASH_DEVICES in qtpy_m0_haxpress mpconfigboard.mk
2024-03-06 09:55:11 -08:00
Michael Gutierrez
2855793566 added W25Q32FV to EXTERNAL_FLASH_DEVICES in qtpy_m0_haxpress mpconfigboard.mk 2024-03-06 01:17:48 -08:00
Dan Halbert
e64082d600
Merge pull request #9008 from tannewt/debug_rgbmatrix_crash
Improve RGBMatrix reliability
2024-03-05 21:27:32 -05:00
Scott Shawcroft
12b4ac13e3
Call vTaskDelay directly in usb_background
This minimizes the delay added. (`port_yield()` does vTaskDelay(4)
so low priority tasks run.)
2024-03-05 15:56:11 -08:00
Scott Shawcroft
5a769dd803
Disable CAN on ESP32 EYE for space 2024-03-05 15:33:38 -08:00
Scott Shawcroft
2d1903cf80
Panic handler in RAM on debug builds only
We don't use it for opt builds, we just restart.
2024-03-05 15:06:38 -08:00
Scott Shawcroft
e0c6302b73
Improve RGBMatrix reliability
The guard against running when flash is disabled isn't perfect and
may lead to calling the row handler anyway. We were crashing due
to mp_hal_delay_us being in flash. So, move it to RAM.

Also move the panic handler to IRAM so we get nice output when this
happens.

Turn off JTAG by default so its pins can be used by code.py.

Fixes #8987
2024-03-05 12:29:05 -08:00
Dan Halbert
d8bd26c560
Merge pull request #9005 from jepler/issue8980
Postpone interacting with the web workflow if a SPI bus is locked
2024-03-05 12:00:33 -05:00
Dan Halbert
3aedd90c83
Merge pull request #9007 from ladyada/main
add new trinkey with sht4x sensor built in
2024-03-05 11:46:06 -05:00
ladyada
655cf6f13f Fix I2C pins & add SHT4x froz 2024-03-05 11:33:52 -05:00
ladyada
51f68932cd add remaining files! 2024-03-05 11:23:51 -05:00
ladyada
358f4f23b2 linted 2024-03-05 11:22:48 -05:00
Dan Halbert
bf423ffbc6
Merge pull request #9006 from jepler/issue8988
ssl: Give correct errno value for "timed out" exceptions
2024-03-05 10:03:18 -05:00
3e029a9d0d ssl: Fix "timed out" exceptions
Incorrect error handling in send/recv would raise an OSError with
an incorrect (negative) code.

It's likely that this bug was always happening in the Pico W
implementation, which became the basis of the current shared
implementation.

Push handling of WANT_{READ,WRITE} down into mbedtls_raise_error
and use it in recv_into and send.

Tested by connecting to google.com:443, sending nothing, and trying
to read a byte:

```py
import socketpool, ssl, time, wifi
socket = socketpool.SocketPool(wifi.radio)
ctx = ssl.SSLContext()
with ctx.wrap_socket(socket.socket()) as ss:
    ss.connect(("google.com", 443))
    ss.settimeout(1)
    b = bytearray(1)
    try:
        t0 = time.monotonic()
        ss.recv_into(b)
    except Exception as ee:
        t1 = time.monotonic()
        exc = ee
        print(t1-t0)
        raise exc
```

As desired, an exception `OSError: [Errno 116] ETIMEDOUT` occurred
and the time delta value was 1.0 seconds.

(tested on pycamera)

Closes: #8988
2024-03-04 20:55:32 -06:00
c0064dcf9f Postpone interacting with the web workflow if a SPI bus is locked
I tested this by fetching a .txt file repeatedly using curl while
running the fancy camera demo. (100+ times without failure). I also
repeatedly loaded the filesystem view http://.../fs/#/sd/ which worked
10+ times without failure, but does take some time (multiple seconds) to
show a listing with a few dozen files.

(I suspect there's an accidentally quadratic behavior in oofatfs to stat
every file in a directory, because it repeatedly does a linear search of
the directory for the stat information of each file, but that's not an
issue for Right Now(TM))

Closes: #8980
2024-03-04 20:23:37 -06:00
Dan Halbert
4a335af28d
Merge pull request #9004 from tannewt/feather_dvi_mem_error
Update tlsf
2024-03-04 20:14:52 -05:00
Scott Shawcroft
f6aa7b1511
Update tlsf
The original implementation couldn't allocate to a region that was
just freed even though the freed region was the same size as the
new request. This was due to allocation sizes being rounded up
during search but not when marking the region in use.

Fixes https://github.com/adafruit/Adafruit_Learning_System_Guides/issues/2746
2024-03-04 16:20:39 -08:00
Dan Halbert
b584642cfd
Merge pull request #8976 from tannewt/rp2_usb_host_keyboard
Provide language code to string descriptors
2024-03-04 16:55:21 -05:00
Dan Halbert
78cbc8378c
Merge pull request #8994 from tannewt/ww_default_writable
Grab FS lock to test writability
2024-03-04 16:54:24 -05:00
Scott Shawcroft
9cc668b65d
Revert most changes. Only change web workflow writable 2024-03-04 13:45:06 -08:00
Scott Shawcroft
0186d9c7e4
Merge pull request #8999 from hathach/fix-8885
call tuh_hid_receive_abort() when detach from kernel driver
2024-03-04 10:11:47 -08:00
Dan Halbert
c3f9adb4b0
Merge pull request #9000 from jins-tkomoda/main
Update board.c for fixing color order
2024-03-04 11:29:04 -05:00
Taiki Komoda
c53d510b11
Update board.c for fixing color order 2024-03-04 20:45:39 +09:00
hathach
3d88402331
call tuh_hid_receive_abort() when detach from kernel driver
- add tuh_event_hook_cb() in SRAM, required when updated to latest tinyusb
- bump up pico-pio-usb to latest
- bump up tinyusb to latest for new tuh_hid_receive_abort(), and all endpoint abort when
SET_CONFIGURATION
2024-03-04 18:16:32 +07:00
Dan Halbert
727ac3927c
Merge pull request #8997 from mariopesch/main
add missing pin definitions for senseBox MCU-S2
2024-03-03 17:28:29 -05:00
Mario Pesch
133fa7b748 add missing pin definitions 2024-03-03 20:18:02 +00:00
Dan Halbert
ffa45dedb1
Merge pull request #8989 from MariuszCwikla/hid_interface_name
usb_hid.set_interface_name
2024-03-03 10:22:27 -05:00
Mariusz Ćwikła
52c38c8914 usb_hid.set_interface_name: use port_malloc to allocate memory for interface name 2024-03-03 09:11:59 +01:00
MariuszCwikla
bf0f9e4125
Reword usb_hid.set_interface_name
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2024-03-02 13:32:19 +01:00
Scott Shawcroft
95c4ffb6ef
Rename verify_fs_writable to filesystem_lock_raise 2024-03-01 14:54:17 -08:00
Scott Shawcroft
69105b24f0
Fix unix build 2024-02-29 14:36:15 -08:00
Scott Shawcroft
ddf9aec00e
Grab FS lock to test writability
Checking is_writable_from_python always follows USB policy even if
it is unplugged. Fixes #8986

Also does bare minimum for #8961.
2024-02-29 14:05:11 -08:00
Dan Halbert
73fc021c1a
Merge pull request #8993 from tannewt/tab_complete_warnings
Disable warnings during REPL autocomplete
2024-02-29 15:36:49 -05:00
Scott Shawcroft
f7945aa285
Disable warnings during REPL autocomplete
Print output muddies the serial output. Setting warnings to crash
could actual raise an exception.

Fixes #8981
2024-02-29 11:58:06 -08:00
Dan Halbert
0d2e62f55f
Merge pull request #8992 from tannewt/debug_rtd
Add specific conf.py for RTD
2024-02-29 14:07:44 -05:00
Scott Shawcroft
a13e65d2d1
Add specific conf.py for RTD 2024-02-29 10:51:41 -08:00
Scott Shawcroft
f4166ce3e5
Merge pull request #8990 from dhalbert/espcamera-finaliser
ports/espressif/bindings/espcamera/Camera.c: add finaliser
2024-02-28 22:05:52 -08:00
Dan Halbert
30a9b7908f ports/espressif/bindings/espcamera/Camera.c: add finaliser 2024-02-28 17:00:15 -05:00
Mariusz Ćwikła
898708a1cc usb_hid.set_interface_name 2024-02-28 16:34:34 +01:00
Scott Shawcroft
0cf3a66c81
Provide language code to string descriptors
This improves #8885 but doesn't fix the read error.
2024-02-23 15:51:12 -08:00
Scott Shawcroft
54e78c89fc
Merge pull request #8970 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2024-02-22 10:13:23 -08:00
Hosted Weblate
9af6bf63eb
Merge remote-tracking branch 'origin/main' 2024-02-22 15:32:52 +01:00
Dan Halbert
eb74d13a8f
Merge pull request #8959 from pypewpew/pewpew-lcd
Update pewpew_lcd to version 4.1
2024-02-22 09:32:47 -05:00
Hosted Weblate
9c45dfbd65
Merge remote-tracking branch 'origin/main' 2024-02-22 15:28:58 +01:00
Dan Halbert
c219d89b1f
Merge pull request #8820 from romkey/8790-ap-connected-devices
New methods to get list of associated stations in access point mode and get maximum number of stations that can be associated
2024-02-22 09:28:53 -05:00
Wellington Terumi Uemura
69dd5d6042
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (992 of 992 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2024-02-22 15:16:50 +01:00
John Romkey
5396482801 removed superfluous check of self->ap_mode - esp_wifi_ap_get_sta_list will return an error if we're not in AP mode, which is sufficient 2024-02-21 21:50:08 -08:00