Commit Graph

26506 Commits

Author SHA1 Message Date
microDev a4bd4e916b
esp32s2 - fix spi_never_reset() 2021-07-02 14:40:41 +05:30
Hosted Weblate 3d5457049e
Merge remote-tracking branch 'origin/main' into main 2021-07-02 05:05:28 +02:00
Dan Halbert c7ffc2c10b
Merge pull request #4957 from tannewt/ble_serial
Add serial over BLE
2021-07-01 23:05:18 -04:00
Dan Halbert d886e8041d Turn off pwmio on meow meow for space reasons 2021-07-01 22:14:37 -04:00
Dan Halbert 33bbb8b1f4 RP2040 PWMAudioOut: Release DMA channels after play has finished. 2021-07-01 17:36:29 -04:00
Scott Shawcroft 3940878695
Shrink builds and handle 0-length writes 2021-07-01 12:49:11 -07:00
Hosted Weblate 22f336ef16
Merge remote-tracking branch 'origin/main' into main 2021-07-01 16:40:15 +02:00
Dan Halbert 37c52110c5
Merge pull request #4943 from jepler/double-wide-colon
remove 'double-wide' characters not in the font
2021-07-01 10:40:08 -04:00
Jonathan Hogg 0b3332c8e1 docs/library: Document new esp32.RMT features and fix wait_done.
Add new API for specifying the idle level and TX carrier output level, and
new write_pulses modes of operation.  Also fix wait_done documentation
which was inverted and wrong about timing.
2021-07-01 14:44:41 +10:00
Jonathan Hogg 18e48a71ee esp32/esp32_rmt: Enhance RMT with idle_level and write_pulses modes.
This change allows specification of the idle level and TX carrier output
level (through changed initialisation API), and more flexible specification
of pulses for write_pulses.

This is a breaking change for the esp32.RMT constructor API.  Previous code
of this form:

    esp32.RMT(..., carrier_duty_percent=D, carrier_freq=F)

will now raise an exception and should be changed to:

    esp32.RMT(..., tx_carrier=(F, D, 1))
2021-07-01 13:39:39 +10:00
David Lechner 58e4d72338 py/objexcept: Pretty print OSError also when it has 2 arguments.
This extends pretty-printing of OSError's to handle two arguments when the
exception name is known.

Signed-off-by: David Lechner <david@pybricks.com>
2021-07-01 13:23:54 +10:00
Hosted Weblate e7d3c5efe2
Merge remote-tracking branch 'origin/main' into main 2021-07-01 04:59:51 +02:00
Dan Halbert 7f39779f45
Merge pull request #4931 from jepler/struct-time-construct
Allow construction of struct_time from another struct_time
2021-06-30 22:59:46 -04:00
Dan Halbert 4d953dcbdd
Fix missing quote in locale/zh_Latn_pinyin.po
Co-authored-by: microDev <70126934+microDev1@users.noreply.github.com>
2021-06-30 22:54:03 -04:00
Hosted Weblate b6c8098671
Merge remote-tracking branch 'origin/main' into main 2021-07-01 04:50:54 +02:00
Dan Halbert 98002cf0ab
Merge pull request #4947 from microDev1/input-validation
Fix bytes() and bytearray() input validation
2021-06-30 22:50:46 -04:00
Frank Pilhofer 41adf17830 tools/pyboard.py: Add cmd-line option to make soft reset configurable.
Leaves the default as-is, but allows using --no-soft-reset to disable the
soft reset when connecting.
2021-07-01 12:37:08 +10:00
robert-hh efa97beb99 tools/autobuild: Add mimxrt port to build scripts for nightly builds.
The firmware for Teensy 4.0, Teensy 4.1 and MIMXRT1020_EVK are created.
Users of other MIMXRT10xx_EVK boards should be able to build the firmware
themselves, they might need specific DEBUG settings.

The Makefile had to be changed in order to build the .bin file as well.
2021-07-01 12:29:16 +10:00
David Lechner 8182f34584 stm32/main: Call mp_deinit() at end of main.
This adds a call to mp_deinit() in the main function of the STM32 port.
This enables the use of MICROPY_PORT_DEINIT_FUNC on that port, as well as
cleaning up the GIL if threading is enabled.
2021-07-01 12:26:40 +10:00
iabdalkader a32a7421d6 stm32/dma: Add DMAMUX configuration for H7 to fix dma_nohal_init.
Fixes issue #5619.
2021-07-01 12:23:19 +10:00
iabdalkader f4dce15c87 stm32/sdio: Fix undefined reference to DMA stream on H7.
Follow up to a96afae90f
2021-07-01 12:21:32 +10:00
Hosted Weblate 0bd181c4d0
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-30 19:19:33 +02:00
Hosted Weblate f3cde244e8
Merge remote-tracking branch 'origin/main' into main 2021-06-30 19:19:30 +02:00
Wellington Terumi Uemura be206b7ba0
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1008 of 1008 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-06-30 19:19:30 +02:00
Scott Shawcroft 54cadb96ec
Merge pull request #4952 from jepler/colorconverter-bgr
ColorConverter: Add "BGR" color modes.
2021-06-30 10:19:25 -07:00
Scott Shawcroft 59a0dda9c5
Merge pull request #4950 from ajs256/issue-forms
Convert to using issue forms
2021-06-30 10:18:01 -07:00
Scott Shawcroft aca1314a3e
Merge pull request #4948 from dmcomm/pulsein-len-docs
Fix pulseio.PulseIn __len__() documentation
2021-06-30 10:17:12 -07:00
Jeff Epler d83a21b984 ColorConverter: Add "BGR" color modes.
The BGR565_SWAPPED mode is needed for OV2640 cameras.
2021-06-30 10:29:31 -05:00
microDev d99d818bf8
update issue form and template 2021-06-30 15:42:22 +05:30
ajs256 89678f79a7 Convert to using issue forms 2021-06-29 21:32:32 -07:00
Damien George 87985fc7e9 stm32/boardctrl: Skip running main.py if boot.py had an error.
Previous behaviour was: if boot.py had an exception then main.py would
still run, which is arguably unexpected behaviour.

This commit changes the behaviour so main.py is not run if boot.py has an
error.

Signed-off-by: Damien George <damien@micropython.org>
2021-06-30 13:24:40 +10:00
Scott Shawcroft f2ef586331
clean up 2021-06-29 11:54:15 -07:00
Scott Shawcroft 826e25989c
Merge pull request #4949 from pewpew-game/macropad-oled
MacroPad RP2040: Add initialization for the OLED display
2021-06-29 11:08:14 -07:00
Limor "Ladyada" Fried 176c5c5cd5
Merge pull request #4942 from pewpew-game/main
PewPew M4: use keypad instead of gamepad
2021-06-29 11:54:01 -04:00
Radomir Dopieralski b8c4f7d685 MacroPad RP2040: Add initialization for the OLED display 2021-06-29 17:38:14 +02:00
microDev e0c626af16
fix bytes() and bytearray() input validation 2021-06-29 19:59:44 +05:30
dmcomm ae8ea915d7
Fix pulseio.PulseIn __len__() documentation 2021-06-29 13:38:12 +01:00
Radomir Dopieralski 1a076d34c9 PewPew M4: use keypad instead of gamepad
Since the new keypad module is taking over gamepad functionality,
I'm switching to it. If this works well, I will make the change
for the remaining boards.
2021-06-29 10:36:52 +02:00
microDev fd681ca70a
minor fix for struct_time docs 2021-06-29 08:11:16 +05:30
Jeff Epler e5d2b25b10 remove 'double-wide' characters not in the font
I noticed the build printed things like
```
Font missing 3 characters
```

.. this is why.

We can't make it an error, because Japanese has hundreds of characters
not in the font.
2021-06-28 19:49:59 -05:00
Jeff Epler 3dcd603e39 time: Fix and better document time.struct_time constructor
INCOMPATIBLE CHANGE: struct_time(1,2,3,4,5,6,7,8,9) is now _rejected_
just as on standad Python.

This incorrect constructor was added by me in #2327; I assumed
without even checking that the `struct_time` constructor was also
compatible with the `namedtuple` constructor, but it is not and has
always been rejected by standard Python (checked 2.7 and 3.9)

This commit restores the specific error message that we used for this
purpose, which was removed in the previous commit either out of laziness
or out of trying to reduce unneeded error strings. In this case, the
alternate string is too misleading (it refers to arguments, not to
sequence elements) so let's put the better message back.
2021-06-28 19:28:00 -05:00
Scott Shawcroft 8a5a7457ab
Merge pull request #4928 from 2bndy5/fix-bus-device-docs
update busio & adafruit_bus_device docs
2021-06-28 15:38:24 -07:00
Kattni b265a924d1
Merge pull request #4941 from kattni/macropad-pins
Adding pins to match silk and other RP2040 boards.
2021-06-28 18:09:11 -04:00
Scott Shawcroft 72f1489c5d
Merge pull request #4924 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-06-28 14:34:37 -07:00
Kattni Rembor 2c2d541e7c Adding pins to match silk and other RP2040 boards. 2021-06-28 17:10:15 -04:00
Hosted Weblate a6dfef64b3
Merge remote-tracking branch 'origin/main' into main 2021-06-28 16:35:24 +02:00
Dan Halbert ae5080955e
Merge pull request #4938 from dhalbert/displayio.Display-doc-fixes
Fix displayio.Display __init__() signature documentation
2021-06-28 10:35:17 -04:00
Dan Halbert 259d5b9e7d Fix displayio.Display __init__() signature documentation 2021-06-28 09:32:50 -04:00
Jeff Epler 78b20441c1 supervisor: Add a function to get "wrapping" milliseconds
As discussed in #3410, this is a micropython-compatible (though
differently named) function that allows creation of useful time
and deadline functions in pure python.
2021-06-27 20:41:39 -05:00
Yonatan Goldschmidt 4ada56d4cb tools/makemanifest.py: Allow passing flags to mpy-tool.py. 2021-06-28 01:50:00 +03:00