Commit Graph

27350 Commits

Author SHA1 Message Date
Jim Mussared
f241db7efe teensy: Switch to use manifest.py instead of FROZEN_DIR.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-12-17 23:54:05 +11:00
Jim Mussared
cc23e99f32 py/modio: Remove io.resource_stream function.
This feature is not enabled on any port, it's not in CPython's io module,
and functionality is better suited to the micropython-lib implementation of
pkg_resources.
2021-12-17 23:53:44 +11:00
Dan Halbert
b3d4f2efcc
Merge pull request #5738 from ladyada/main
fix final qtpys2 and s2tft feather pinouts
2021-12-17 07:53:03 -05:00
lady ada
c088090319 nuudge 2021-12-17 01:17:35 -05:00
lady ada
12e72ef406 fix final qtpys2 and s2tft feather pinouts 2021-12-17 00:24:19 -05:00
Jeff Epler
9622457615
Merge pull request #5736 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-12-16 17:46:54 -07:00
Jonny Bergdahl
e72470f905
Translated using Weblate (Swedish)
Currently translated at 100.0% (1029 of 1029 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-12-16 23:53:27 +01:00
Wellington Terumi Uemura
2cdd73f793
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1029 of 1029 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-12-16 23:53:26 +01:00
Scott Shawcroft
3f50453dd0
Merge pull request #5727 from tannewt/rpi_neopixel
Add neopixel support on PWM capable pins
2021-12-16 11:44:02 -08:00
Jeff Epler
eeb84ce97f
Merge pull request #5731 from rsbohn/dexter-editorial
Fix some documentation issues
2021-12-16 08:05:35 -07:00
Scott Shawcroft
7c2e7bfeaa
Add alternative clock pin name to match silkscreen 2021-12-15 14:41:42 -08:00
Scott Shawcroft
5e4cb4f1e2
Yes, index is unused. That's ok. 2021-12-15 13:46:31 -08:00
Dan Halbert
a526613ddd
Merge pull request #5723 from timhawes/traceback_fix
traceback: fix for crash on non-native exceptions
2021-12-15 15:30:58 -05:00
Randall Bohn
fd655301b5
edit docstring for pixel_shader 2021-12-15 13:07:12 -07:00
Randall Bohn
5d5c966771
install is a pre-commit command
not an option
2021-12-15 13:05:03 -07:00
Scott Shawcroft
190aee551e
Merge pull request #5699 from jpconstantineau/board-pykey87
Add support for PyKey family of keyboards
2021-12-15 10:59:55 -08:00
Scott Shawcroft
4e41bf1dc7
Checkout ulab for build 2021-12-15 10:56:27 -08:00
Scott Shawcroft
d50079c4ca
Merge pull request #5716 from timhawes/ssl_improvements
SSL improvements
2021-12-15 10:52:48 -08:00
microDev
7e46387196
add non-native exception in traceback_test
Co-authored-by: Dan Halbert <halbert@adafruit.com>
2021-12-15 20:48:33 +05:30
microDev
70b3e73349
traceback: fix for crash on non-native exceptions
Co-authored-by: Tim Hawes <me@timhawes.com>
2021-12-15 12:29:21 +05:30
Damien George
d6dc4cb65a py/showbc: Fix printing of raw bytecode header on nanbox builds.
Signed-off-by: Damien George <damien@micropython.org>
2021-12-15 16:54:47 +11:00
Damien George
598618e8cf tools/makemanifest.py: Make str conversion compatible with Python 2.
Signed-off-by: Damien George <damien@micropython.org>
2021-12-15 16:51:08 +11:00
Tomas Vanek
9aa151e3f3 esp32/boards: Remove SPI pin defaults from GENERIC S2/S3 boards.
Default SPI pins are now correctly assigned by machine_hw_spi.c even for S2
and S3.  mpconfigboard.h files define defaults with flipped SPI(1) and
SPI(2) to workaround a bug in machine_hw_spi.c - the bug is fixed.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
2021-12-15 15:53:17 +11:00
Tomas Vanek
e761152d72 esp32/machine_hw_spi: Set proper default SPI(id=2) pins on S2 and S3.
Use IO_MUX pins as defined by ESP IDF in soc/esp32/include/soc/spi_pins.h

ESP32S2 and S3 don't have IO_MUX pins for SPI3, GPIO matrix is always used.
Choose suitable defaults for S2 and S3.

ESP32C3 does not have SPI3 at all.  Don't define pin mappings for it.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
2021-12-15 15:53:17 +11:00
Tomas Vanek
d08886558b esp32/machine_hw_spi: Set proper default SPI(id=1) pins on S2,S3 and C3.
Use IO_MUX pins as defined by ESP IDF in soc/esp32*/include/soc/spi_pins.h
Alternatively use now deprecated HSPI_IOMUX_PIN_NUM_xxx
(or FSPI_IOMUX_PIN_NUM_xxx for ESP32S2) for compatibility with IDF 4.2
and older.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
2021-12-15 15:50:27 +11:00
Tomas Vanek
3305ec44a2 esp32/machine_hw_spi: Fix SPI default pins reordering on ESP32-S2/S3.
The index of machine_hw_spi_obj and machine_hw_spi_default_pins arrays is
assigned to 0 for ARG_id==HSPI_HOST and 1 for another SPI.  On ESP32S2 and
S3 HSPI_HOST=2 so the first set (idx=0) of default pins is used for
SPI(id=2) aka HSPI/SPI3 and the second set (idx=1) for SPI(id=1) aka
FSPI/SPI2.  This makes a misleading mess in MICROPY_HW_SPIxxxx definitions
and it is also in contradiction to the comments around the definitions.

Change the test of ARG_id to fix the order of machine_hw_spi_default_pins.

This change might require adjusting MICROPY_HW_SPIxxxx definitions in
mpconfigboard.h of S2/S3 based boards.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
2021-12-15 15:49:23 +11:00
Tomas Vanek
f9733705a9 esp32/machine_pin: Make GPIO 26 usable for S2,S3 if SPIRAM not config'd.
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
2021-12-15 15:48:46 +11:00
MicroDev
02926228b3
Merge pull request #5729 from asura99/fix-pinout
fix missing pintout. Closes #5720 .
2021-12-15 10:16:38 +05:30
gamblor21
bb8ad7f611 Fixed doc 2021-12-14 22:44:27 -06:00
Dan Halbert
cad8c1fcdf
Merge pull request #5721 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2021-12-14 23:39:33 -05:00
Pierre Constantineau
f3ec6ee760 tested hardware and cleaned-up commented out pin defs 2021-12-14 21:46:04 -06:00
Hosted Weblate
e683729b37
Merge remote-tracking branch 'origin/main' 2021-12-15 04:32:14 +01:00
dronecz
a788de9f30
Translated using Weblate (Czech)
Currently translated at 2.9% (30 of 1029 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/cs/
2021-12-15 04:32:14 +01:00
Dan Halbert
62026bc1df
Merge pull request #5728 from tannewt/vectorio32
Support 32 bit color with vectorio
2021-12-14 22:32:04 -05:00
Asura
7b2980ead2
fix missing pintout.
fix missing pintout p20 & p21 for makerdiary_nrf52840_mdk_usb_dongle.
2021-12-15 09:57:26 +08:00
Christian Decker
e9f880482c tools/upip.py: Support == to specify exact package version. 2021-12-15 12:49:14 +11:00
Scott Shawcroft
01f8cffdae
Support 32 bit color with vectorio
Fixes #5639
2021-12-14 17:13:11 -08:00
Scott Shawcroft
2693e2ce0a
Add neopixel support on PWM capable pins
It'll be hard to do PWM from them concurrently

Fixes #5697
2021-12-14 16:59:53 -08:00
dronecz
8b7c90c373
Translated using Weblate (Czech)
Currently translated at 2.4% (25 of 1029 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/cs/
2021-12-15 01:54:32 +01:00
Damien George
d9d67adef1 docs: Remove trailing spaces and convert tabs to spaces.
Signed-off-by: Damien George <damien@micropython.org>
2021-12-15 11:49:22 +11:00
microDev
96c6271134
apply suggestions from reviews
- minor typo fix
- update documentation for board module
2021-12-15 02:02:20 +05:30
Tim Hawes
54e87d3660
Apply suggestions from code review
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-12-14 20:03:44 +00:00
robert-hh
5ca56aaf16 mimxrt: Tidy up the board flash related files.
- Move the qspi_xxxx_flash_config.c files to hal.
  It turned out that they are less board than flash type specific.
- Change to a common flexspi_flash_config.h header file.
2021-12-14 20:31:20 +01:00
Hosted Weblate
3084e1eba8
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-12-14 18:38:28 +01:00
Scott Shawcroft
aee80d67b6
Merge pull request #5709 from WarriorOfWire/width_and_height
vectorio: Add width and height properties to rectangle
2021-12-14 09:38:14 -08:00
Pierre Constantineau
162e253949 finalizing pin assignments prior to final hardware test 2021-12-14 09:45:39 -06:00
robert-hh
c5dbbf71c0 mimxrt: Use -Og instead of -O0 for DEBUG builds.
Thanks for the hint, Damien. The DEBUG build got very large recently.
The major difference is, that inline function are now inlined and
not included as a function. That's good and maybe bad. The good thing is,
that the code speed si now close to the final code. It could be worse
in single step debugging. I'll see.

Setting this option caused a new warning and a formatting error
to pop up at different places. Fixed as well.
2021-12-14 08:07:52 +01:00
robert-hh
64aa0bcb88 mimxrt: Enable ticks_cpu at boot time for NDEBUG builds only.
Otherwise, it get's in trouble with a Debugger. Reason to be found.
Also: Increase code segment to 2 MB for the MIMXRT1050_EVK build.
2021-12-14 08:07:52 +01:00
robert-hh
74e8db0ed1 mimxrt: Refactor the reading of the machine id.
The ID is read in a single function and used for:
- machine.unique_id()
- Ethernet MAC addresses.
- ...

That facilitates use of other MCU using a different access method for
the ID (e.g. i.MX RT1176).
2021-12-14 08:07:52 +01:00
robert-hh
1e9eaa7af5 mimxrt: Add a driver for the DP83848 PHY device.
Just another choice for the PHY interface.

Added: Keyword option phy_clock=LAN.IN or LAN.OUT
to define the source of the 50MHZ clock for the PHY
interface. The RMII clock is not enabled if it
is generated by a PYH board. Constants:

LAN.IN  The clock is provided by the PHY board.
LAN.OUT The clock is provided by the MCU board.

The default is LAN.OUT or the value set in mpconfigboard.h, which
is currently set to IN only for the SEEED ARCH MIX board. Usage etc:

lan = LAN(phy_type=LAN.PHY_DP83848, phy_clock=LAN.IN)
2021-12-14 08:07:52 +01:00