Commit Graph

34683 Commits

Author SHA1 Message Date
Taiki Komoda d638aa07aa brightness is now functional 2023-10-09 12:18:50 +09:00
Sumitra Sharma 002961775b Refine error message for rp2040 audiobusio I2S object creation
The error message for creating an I2S object on the rp2040 platform
in CircuitPython can be misleading when the word_select and data pins
are not sequential. This change updates the error message to provide
clearer guidance by specifying "GPIO pins" instead of just "pins".
The revised message now reads:

ValueError: Bit clock and word select must be sequential GPIO pins

Closes #8058

Signed-off-by: Sumitra Sharma <sumitraartsy@gmail.com>
2023-10-08 20:54:55 +05:30
Dan Halbert 426e54fb87
Merge pull request #8464 from tirtharajsinha/main
waveshare-esp32-s3-pico - removing gpio (19,20) and adding gpio(33,34) and spi pins
2023-10-08 11:01:29 -04:00
Taiki Komoda 96ae87e559 display is functional now 2023-10-08 23:51:18 +09:00
Tirtharaj Sinha 2047a8d485
Merge branch 'adafruit:8.2.x' into 8.2.x 2023-10-08 13:03:22 +05:30
Tirtharaj Sinha 448b8cb271 removing gpio (19,20) and adding gpio(33,34) and spi pins 2023-10-08 12:53:43 +05:30
Dan Halbert ca7be16209 fixes for stm and mimxrt10xx 2023-10-07 23:27:20 -04:00
Tirtharaj Sinha c8926de26b removing gpio 19 and 20 as these pins are not broken out in board 2023-10-08 02:48:39 +05:30
Dan Halbert a14a9a064a
Merge pull request #8463 from tirtharajsinha/8.2.x
Adding the missing pins(33,34) and SPI pins
2023-10-07 16:00:03 -04:00
Tirtharaj Sinha d4b5146147 Adding the missing pins(33,34) and SPI pins 2023-10-07 23:42:09 +05:30
Mark f14ca95df4
Merge pull request #8462 from tannewt/fix_adc_pin_test_idf5
Fix pin adc unit check
2023-10-06 18:22:56 -05:00
Scott Shawcroft 15c5e8c806
Fix pin adc unit check
IDF5 made 0 valid. Use the NO_ADC macro instead
2023-10-06 15:55:43 -07:00
Dan Halbert c9d7195505
Merge pull request #8447 from tannewt/5.1_enable_rgbmatrix
Enable rgbmatrix on IDF 5.1
2023-10-06 17:14:04 -04:00
Dan Halbert f3fc1f70b8
Merge pull request #8461 from tannewt/update_esp_protocols
Update esp-protocols
2023-10-06 17:05:58 -04:00
Scott Shawcroft 22bcb85dd5
Update esp-protocols
The commit was amended for PR review into espressif's repo. Next
time I'll make a branch to PR to them from.
2023-10-06 09:54:55 -07:00
Taiki Komoda 0dfafe2a4b wip 2023-10-06 23:17:36 +09:00
Damien George e00a144008 all: Bump version to 1.21.0.
Signed-off-by: Damien George <damien@micropython.org>
2023-10-06 10:32:07 +11:00
Scott Shawcroft 376cb87a25
Update protomatter to fix non-S3 and C6 2023-10-05 14:56:11 -07:00
Scott Shawcroft 923a5b28ca
Add NO_FPS_LIMIT instead of magic numbers 2023-10-05 14:56:11 -07:00
Scott Shawcroft 807edd4c66
Improve framebufferdisplay.refresh()
Now the defaults make it easy to refresh when you want. It matches
the displayio.Display().refresh() behavior.
2023-10-05 14:56:11 -07:00
Scott Shawcroft 4d2bc35d40
Re-enable rgbmatrix on IDF 5.1 2023-10-05 14:56:11 -07:00
Scott Shawcroft bf3d84195f
Fix decompressing using qstrs after running the VM
The qstr state still pointed to qstr pools in the released MP heap.
2023-10-05 14:56:11 -07:00
Scott Shawcroft 85650bf1ab
Fix re unescaping 2023-10-05 13:35:07 -07:00
Scott Shawcroft 49511b0746
Bring back ordereddict.move_to_end() 2023-10-05 12:48:45 -07:00
Scott Shawcroft 94c7082e9c
Fix super init. CP changed it to support kwargs 2023-10-05 12:44:30 -07:00
Scott Shawcroft 4863ce7c8e
Fix binascii.crc32 unicode check 2023-10-05 12:33:51 -07:00
Scott Shawcroft f8996cb202
Fix json tests by checking for zero read from stream 2023-10-05 12:33:51 -07:00
Dan Halbert 58db1722da Merge branch 'v1.20-merge' of https://github.com/dhalbert/circuitpython into v1.20-merge 2023-10-05 14:50:41 -04:00
Dan Halbert 06765ccfa6 RP2040 now builds 2023-10-05 14:49:49 -04:00
Scott Shawcroft 18c03a74dd
Fix a few tests
* Re-enable a couple FATFS configurations we added.
* Remove MICROPY_PY_IO_FILEIO.
* Remove uasyncio from standard unix build.
* Re-add our unicode printing improvements.
2023-10-05 10:59:08 -07:00
Dan Halbert 5126cd3dc3
Merge pull request #8460 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-10-05 10:22:49 -04:00
Damien George 6f76d1c7fa rp2: Implement time.time_ns with time_us_64 so it has us resolution.
Currently on rp2 the time.time_ns() function has only seconds resolution.
This commit makes it have microsecond resolution, by using the output of
time_us_64() instead of the RTC.

Tested that it does not drift from the RTC over long periods of time.

Signed-off-by: Damien George <damien.p.george@gmail.com>
2023-10-05 21:24:47 +11:00
Damien George c2e9a6f2a5 esp8266/boards/ESP8266_GENERIC: Remove urllib from the 2MiB manifest.
No other network-enabled board has urllib.urequest frozen in to the
firmware, and esp8266 is relatively low on flash, so remove this module.

And (u)requests is already included by bundle-networking.

Signed-off-by: Damien George <damien@micropython.org>
2023-10-05 20:55:52 +11:00
Glenn Moloney f0f173ff5c esp32/boards/manifest.py: Freeze aioespnow into firmware by default.
Also remove corresponding commented line from esp8266/boards/manifest.py.
It doesn't have enough flash to have this frozen by default.

Signed-off-by: Glenn Moloney <glenn.moloney@gmail.com>
2023-10-05 20:50:49 +11:00
Andi Chandler b7db6ad265
Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (993 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/en_GB/
2023-10-05 03:10:28 +00:00
Wellington Terumi Uemura 3d30d4dc25
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (993 of 993 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2023-10-05 03:10:27 +00:00
Angus Gratton d81cf0b9e3 rp2/CMakeLists: Enable debug symbols in all builds.
Allows using gdb, addr2line, etc. on a "release" ELF file.

No impact to .bin or .uf2 size, only the .elf will get bigger.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-10-05 14:08:17 +11:00
Damien George 040a96d00e docs,tools: Change remaining "urequests" references to "requests".
Signed-off-by: Damien George <damien@micropython.org>
2023-10-05 14:04:45 +11:00
Damien George 342ebcb41d lib/micropython-lib: Update submodule to latest.
Signed-off-by: Damien George <damien@micropython.org>
2023-10-05 11:21:34 +11:00
Damien George 5d53783a46 lib/cyw43-driver: Update driver to latest version v1.0.2.
Includes more error checking, and a fix to handle buffer overflow when
getting STA MACs.

Signed-off-by: Damien George <damien@micropython.org>
2023-10-05 11:20:05 +11:00
iabdalkader 5aec051f9f stm32/i2c: Add support for I2C4 on H7 MCUs.
The current code assumes all I2Cs are on the same peripheral bus, which is
not true for I2C4 and the same goes for the clock enable code.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2023-10-05 10:26:59 +11:00
stijn cac666f38c extmod/vfs_posix_file: Fix flush handling in msvc builds.
Flushing console output in msvc builds always fails because that
output is not buffered so don't propagate that as an error (in a
simlar way as was done in 1c047742 for macOS).

Signed-off-by: stijn <stijn@ignitron.net>
2023-10-05 10:18:24 +11:00
Scott Shawcroft 2e6ef78227
Update Metro S3 pin mapping for Rev B 2023-10-04 09:43:41 -07:00
Damien George 92717a95c0 tools/metrics.py: Fix esp32 and esp8266 board names after renaming.
Signed-off-by: Damien George <damien@micropython.org>
2023-10-04 15:44:25 +11:00
Luca Burelli 1cd61149e4 esp32/boards/ARDUINO_NANO_ESP32: Use Arduino USB IDs.
The IDF-provided version of TinyUSB defaults to Espressif's standard
VID:PID unless specific sdkconfig options are present. The numbers
already defined for the CUSTOM_* config options were ignored otherwise.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2023-10-04 13:06:14 +11:00
Jim Mussared 65a3ce39a3 extmod/modnetwork: Forward if.config(hostname) to network.hostname.
This removes the duplicate code in cyw43, esp32, esp8266 that implements
the same logic as network.hostname.

Renames the `mod_network_hostname` (where we store the hostname value in
`.data`) to `mod_network_hostname_data` to make way for calling the shared
function `mod_network_hostname`.

And uses memcpy for mod_network_hostname_data, because the length of source
is already known and removes reliance on string data being null-terminated.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-10-04 12:39:51 +11:00
Jim Mussared b329fdcb73 extmod/modnetwork: Increase max hostname length to 32.
This changes from the previous limit of 15 characters.  Although DHCP and
mDNS allow for up to 63, ESP32 and ESP8266 only allow 32, so this seems
like a reasonable limit to enforce across all ports (and avoids wasting the
additional memory).

Also clarifies that `MICROPY_PY_NETWORK_HOSTNAME_MAX_LEN` does not include
the null terminator (which was unclear before).

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-10-04 12:39:23 +11:00
Dan Halbert b4e29e9426
Merge pull request #8456 from tannewt/remove_deprecated_apis
Remove deprecated apis
2023-10-03 15:08:39 -04:00
Dan Halbert 7e0e6fcdca Metro M4 now compiles 2023-10-03 15:03:59 -04:00
Scott Shawcroft f914e0ea3c
Merge pull request #8455 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2023-10-03 10:02:37 -07:00