Scott Shawcroft
674c845fb6
Merge pull request #5760 from jepler/rename_under_typing
...
circuitpython_stubs: Use `circuitpython_typing` for cp-specific typing
2021-12-22 14:05:04 -08:00
Scott Shawcroft
3e13d4f5b5
Add sideset_enable support to PIO
...
This allows for UART TX via PIO
2021-12-22 12:00:19 -08:00
Scott Shawcroft
9d5ae2e072
Merge pull request #5762 from dhalbert/stale-wakeup-reasons
...
Fix recording of wake_alarm
2021-12-22 10:21:50 -08:00
Scott Shawcroft
936644c157
Revert "Fix cascadetoml more"
2021-12-22 10:07:30 -08:00
Jeff Epler
828b7d88d8
update sphinx
...
note that per the https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
specify "3" for the latest python version (not 3.x as on github actions)
2021-12-22 11:32:54 -06:00
Jeff Epler
fb79d1c1d1
bitmaptools: add missing types
...
These diagnostics occurred, but weren't treated as errors:
```
[WARN] Missing return type: alphablend on line 38
[WARN] Missing argument type: dest_bitmap on line 38
[WARN] Missing argument type: source_bitmap_1 on line 38
[WARN] Missing argument type: source_bitmap_2 on line 38
```
2021-12-22 11:16:38 -06:00
Jeff Epler
166793f843
circuitpython_stubs: Use circuitpython_typing
for cp-specific typing
...
Installing stubs for a module named `_typing` seems like a dubious
decision.
2021-12-22 11:14:21 -06:00
Danny Staple
174a2cbf25
Fix RST formatting for readthedocs
...
And also a typo/grammar thing.
2021-12-22 17:03:58 +00:00
Dan Halbert
3bb9a4439d
Fix recording of wake_alarm
2021-12-21 21:48:36 -05:00
Michael Bentley
7566d107d5
tools/mpremote: Add mkdir and rmdir to RemoteFS.
...
This allows the remote MicroPython instance to create and delete
directories from the mounted host filesystem in addition to the already
existing functionality of reading, creating, and modifying files.
Signed-off-by: Michael Bentley <mikebentley15@gmail.com>
2021-12-22 12:13:39 +11:00
Jim Mussared
599b61c086
esp32/machine_bitstream: Replace bit-bang code with RMT-based driver.
...
This aims to solve glitching issues on long neopixel strips.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-12-22 12:04:13 +11:00
Scott Shawcroft
bea0526954
Merge pull request #5751 from weblate/weblate-circuitpython-main
...
Translations update from Hosted Weblate
2021-12-21 16:23:16 -08:00
Scott Shawcroft
03a80e429b
Add new line for pre-commit
2021-12-21 16:21:10 -08:00
Dan Halbert
c27c6155e6
Merge pull request #5758 from adafruit/revert-5750-pin-cascadetoml
...
Revert "pin specific versions of cascadetoml & tomlkit, temporarily"
2021-12-21 17:55:58 -05:00
Scott Shawcroft
0db83f42a4
Revert "pin specific versions of cascadetoml & tomlkit, temporarily"
2021-12-21 11:17:10 -08:00
Jeff Epler
05b70f3a42
Merge pull request #5755 from jepler/fix-cascadetoml-more
...
Fix cascadetoml more
2021-12-21 09:23:21 -07:00
Hosted Weblate
ff33231c2f
Merge remote-tracking branch 'origin/main'
2021-12-21 17:00:55 +01:00
Dan Halbert
a17d39f989
Merge pull request #5754 from adafruit/7.1.x
...
Merge 7.1.x to main for cascadetoml workaround
2021-12-21 11:00:47 -05:00
Jeff Epler
f527ef0eb8
pin cascadetoml for windows build too
2021-12-21 08:43:35 -06:00
Jeff Epler
ced98381f1
Merge pull request #5750 from jepler/pin-cascadetoml
...
pin specific versions of cascadetoml & tomlkit, temporarily
2021-12-21 07:08:29 -07:00
IhorNehrutsa
09fe80d091
esp32/machine_pwm: Keep duty constant when changing frequency.
...
Save and restore the same duty cycle when the frequency (or frequency
resolution) is changed. This allows a smooth frequency change.
Also update the esp32 PWM quickref to be clearer.
2021-12-22 00:05:58 +11:00
IhorNehrutsa
4189c64869
esp32/modnetwork: Synchronize WiFi AUTH_xxx constants with IDF values.
2021-12-21 23:56:23 +11:00
0hotpotman0
745003751c
Add new board Seeed_XIAO_nRF52840
2021-12-21 19:08:11 +08:00
Damien George
c768704cfd
tests/basics/int_big_cmp.py: Add more tests for big-int comparison.
...
To improve coverage of mpz_cmp and mpn_cmp.
Signed-off-by: Damien George <damien@micropython.org>
2021-12-21 18:00:11 +11:00
Damien George
2c139bbf4e
py/mpz: Fix bugs with bitwise of -0 by ensuring all 0's are positive.
...
This commit makes sure that the value zero is always encoded in an mpz_t as
neg=0 and len=0 (previously it was just len=0).
This invariant is needed for some of the bitwise operations that operate on
negative numbers, because they cannot handle -0. For example
(-((1<<100)-(1<<100)))|1 was being computed as -65535, instead of 1.
Fixes issue #8042 .
Signed-off-by: Damien George <damien@micropython.org>
2021-12-21 18:00:05 +11:00
Damien George
05bea70979
esp8266/etshal.h: Remove unneeded function declarations.
...
These removed ones are either unused by MicroPython or provided by osapi.h
in the SDK. In particular ets_delay_us() has different signatures for
different versions of the SDK, so best to let it provide the declaration.
Fixes issue #8095 .
Signed-off-by: Damien George <damien@micropython.org>
2021-12-21 14:37:16 +11:00
Hosted Weblate
5d4fbec072
Merge remote-tracking branch 'origin/main'
2021-12-21 03:24:54 +01:00
Dan Halbert
b60a806968
Merge pull request #5752 from jepler/ci-python3
...
make github-ci install python version "3.x" everywhere we use actions/setup-python (and upgrade to setup-python@v2)
2021-12-20 21:24:47 -05:00
Jeff Epler
d61d8b1020
set up python 3.x and use setup-python@v2
2021-12-20 19:05:51 -06:00
Hosted Weblate
99ada903d1
Merge remote-tracking branch 'origin/main'
2021-12-21 00:41:55 +01:00
Jeff Epler
6072016c7b
Merge pull request #5749 from FoamyGuy/tilegrid_size_props
...
Tilegrid size properties
2021-12-20 16:41:45 -07:00
dronecz
5e523c498d
Translated using Weblate (Czech)
...
Currently translated at 4.5% (47 of 1029 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/cs/
2021-12-20 22:53:46 +01:00
Scott Shawcroft
bd207e4ef9
Merge pull request #5735 from tannewt/kb2040_clk_pin
...
Add alternative clock pin name to match silkscreen
2021-12-20 12:37:10 -08:00
Scott Shawcroft
1ec3e023d7
Merge pull request #5744 from jepler/update-protomatter
...
Update protomatter & re-enable rgbmatrix on esp32s2
2021-12-20 12:34:02 -08:00
foamyguy
d08ba86fc4
Revert "code format"
...
This reverts commit 577358ae99b45ae06ae7c07ba341165b2f58568e.
2021-12-20 12:09:14 -06:00
foamyguy
8b71519317
code format
2021-12-20 10:48:08 -06:00
Jeff Epler
4125a10d69
pin specific versions of cascadetoml & tomlkit, temporarily
2021-12-20 09:57:26 -06:00
foamyguy
577358ae99
code format
2021-12-20 07:38:16 -06:00
foamyguy
2ce9dc7680
Merge branch 'adafruit_main' into tilegrid_size_props
2021-12-20 07:31:08 -06:00
Matt Trentini
f2b5c99fde
stm32/boards/OLIMEX_H407: Fix typo in OLIMEX H407 board.json.
...
Appears incorrectly as E407 in the download manager.
2021-12-20 12:32:46 +11:00
iabdalkader
bedd9c5463
stm32/boards/make-pins.py: Generate empty ADC table if needed.
...
If ADCx pins are hidden, print an empty table to prevent linker errors.
2021-12-20 09:41:46 +11:00
iabdalkader
1dc532019b
stm32/qspi: Fix typo in address comment.
2021-12-19 17:48:00 +11:00
iabdalkader
f9e5b0d93d
stm32/factoryreset: Init vfs flags before calling pyb_flash_init_vfs.
...
The vfs flags could have any random value from stack. This bug was
introduced back in 7723dac3371ccf081c2490b33b69492dc42818bd
2021-12-19 17:42:15 +11:00
Jeff Epler
4eb780732b
Merge pull request #5748 from dhalbert/pixelbuf-packed-int-error-7.1.x
...
Explicitly cast float to mp_int_t - 7.1.x
2021-12-18 18:02:58 -07:00
Damien George
fe9ffff9c0
py/mpstate.h: Only include sys.path/argv objects in state when enabled.
...
The mp_sys_path_obj and mp_sys_argv_obj objects are only used by the
runtime and accessible from Python if MICROPY_PY_SYS is enabled. So
exclude them from the runtime state if this option is disabled.
Signed-off-by: Damien George <damien@micropython.org>
2021-12-19 08:55:40 +11:00
Jeff Epler
7f189b3e30
Merge pull request #5747 from adafruit/7.1.x
...
Merge 7.1.x fixes and updates into main
2021-12-17 20:44:43 -07:00
George Waters
0ce5265624
Explicitly cast float to mp_int_t
...
Not sure why this is necessary, but it prevents an off-by-one error in
some (rare?) circumstances.
2021-12-17 22:41:48 -05:00
Dan Halbert
0ec839a956
Merge pull request #5746 from dunkmann00/pixelbuf-packed-int-error
...
Explicitly cast float to mp_int_t
2021-12-17 22:40:01 -05:00
George Waters
c615daff30
Explicitly cast float to mp_int_t
...
Not sure why this is necessary, but it prevents an off-by-one error in
some (rare?) circumstances.
2021-12-17 16:23:58 -05:00
Dan Halbert
b2189d3590
Merge pull request #5741 from dhalbert/5738-backport-to-7.1.x
...
Backport #5738 and #5742 to 7.1.x
2021-12-17 16:04:44 -05:00