Randall Bohn
8613b9a9fe
Trim Trailing Whitespace
...
was causing pre-commit checks to fail
2021-05-03 07:41:52 -06:00
Randall Bohn
2db113f191
esp32-s2: Don't set PWMOut frequency to 0
...
FeatherS2 crashes if you set the PWMOut frequency to 0.
This change will raise `ValueError: Invalid PWM frequency` if the requested frequency is 0.
(Lifted from the atmel-samd port)
2021-05-03 07:15:39 -06:00
Dan Halbert
e6dc3e4686
Merge pull request #4698 from tyomitch/microbit
...
`workflow_active` was never defined or used
2021-05-01 15:26:57 -04:00
Artyom Skrobov
9a5fb44c76
workflow_active
was never defined or used
...
`supervisor_workflow_active` needs to be stubbed for when there's no USB
2021-05-01 13:34:28 -04:00
Dan Halbert
ebedeeb51d
Merge pull request #4695 from dhalbert/magtag-spi-naming
...
MagTag: Remove board.SPI(); rename display-only pins
2021-05-01 09:44:42 -04:00
Dan Halbert
fb80cc4810
Merge pull request #4692 from jepler/fix-codeformat-subdirs
...
codeformat: Fix filename matching
2021-04-30 23:31:08 -04:00
Dan Halbert
670c49ed94
MagTag: Remove board.SPI(); rename display-only pins
2021-04-30 22:58:51 -04:00
Jeff Epler
1a52cbcf5d
Format a straggler file
2021-04-30 16:42:25 -05:00
Jeff Epler
da19e8e2d7
Merge remote-tracking branch 'origin/main' into fix-codeformat-subdirs
2021-04-30 15:31:08 -05:00
Jeff Epler
dfa7c3d32d
codeformat: Fix handling of **
...
After discussing with danh, I noticed that `a/**/b` would not match `a/b`.
After correcting this and re-running "pre-commit run --all", additional
files were reindented, including the codeformat script itself.
2021-04-30 15:30:13 -05:00
Scott Shawcroft
d93a9a1dbc
Merge pull request #4683 from DavePutz/issue_4661
...
Issue #4661 - Wrap pulsein values when maxlen is exceeded.
2021-04-30 11:07:54 -07:00
Scott Shawcroft
0573c17d70
Merge pull request #4690 from jepler/fix-vm-dispatch
...
py/vm.c: Restore lost bits of MICROPY_OPT_COMPUTED_GOTO_SAVE_SPACE
2021-04-30 10:40:07 -07:00
Jeff Epler
e95e921ca1
codeformat: Fix filename matching
...
In #4683 , tannewt noticed that uncrustify was not running on some
file in common-hal.
I investigated and found that it was not being run on a bunch of paths.
Rather than make incremental changes, I rewrote list_files to work
bsaed on regular expressions; these regular expressions are created from
the same git-style glob patterns.
I spot-checked some specific filenames after this change, and all looks good:
```
$ python3 tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup extmod/virtpin.c ports/raspberrypi/background.h ports/raspberrypi/common-hal/pulseio/PulseIn.c
black --fast --line-length=99 -v tests/thread/thread_exit1.py
```
recursiveloop and int_small are excluded, while PulseIn, virtpin,
and background are included.
Testing running from a subdirectory (not _specifically_ supported though):
```
(cd ports && python3 ../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c)
../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup ../extmod/virtpin.c raspberrypi/common-hal/pulseio/PulseIn.
```
As a side-effect, a bunch more files are re-formatted now. :-P
2021-04-30 10:48:08 -05:00
Dan Halbert
353e55d710
Merge pull request #4688 from jepler/fix-pixelbuf-subscr
...
objtype: Restore our customized behavior of instance_subscr
2021-04-30 10:45:44 -04:00
Jeff Epler
41b273e0c1
py/vm.c: Restore lost bits of MICROPY_OPT_COMPUTED_GOTO_SAVE_SPACE
...
This fixes a problem where boards that enabled this (most SAM D21s)
would crash on the first bytecode instruction.
Closes : #4686
2021-04-30 09:17:40 -05:00
Mark
5ef9b10669
Merge pull request #4685 from microDev1/authmode
...
Add AuthMode class
2021-04-29 22:12:58 -05:00
Mark
5679eb4fd7
Merge pull request #4677 from skerr92/add-cp-sapling-rev-b
...
Add cp sapling rev b
2021-04-29 19:22:49 -05:00
Seth Kerr
8b611d4b6b
changing mpconfigboard makefile
2021-04-29 16:45:08 -06:00
Jeff Epler
90bdb25219
ignore some pins to reclaim flash space
2021-04-29 14:36:29 -05:00
Jeff Epler
6498684f5e
ignore some pins to reclaim flash space
2021-04-29 14:30:31 -05:00
Kattni
ad805f5a4e
Merge pull request #4687 from kattni/itsyrp-pin-fix
...
Fix ItsyBitsy RP2040 board definition
2021-04-29 15:14:12 -04:00
Kattni Rembor
4d97680cae
Fix board definition.
2021-04-29 13:45:39 -04:00
DavePutz
1ec59cd534
Fix up indentation
2021-04-29 12:38:13 -05:00
Jeff Epler
d1e17fdccc
objtype: Restore our customized behavior of instance_subscr
...
For pixelbuf's [] to be able to call _transmit on the Python subclass,
we need to do the subscripting operation specially.
2021-04-29 11:59:11 -05:00
Kattni Rembor
0bf747870a
Fixing board definition.
2021-04-29 12:41:23 -04:00
Jeff Epler
52589691b8
Merge pull request #4651 from lesamouraipourpre/minor-docs-fixes
...
Minor docs fixes in displayio.Bitmap
2021-04-29 08:12:47 -05:00
microDev
1b972c51c3
add authmode class
2021-04-29 18:42:36 +05:30
Jeff Epler
d035a68c74
Merge pull request #4652 from jposada202020/design_guide_changes
...
Referencing_documentation_other_libraries
2021-04-29 08:10:13 -05:00
Jeff Epler
2a04379540
Merge pull request #4681 from weblate/weblate-circuitpython-main
...
Translations update from Weblate
2021-04-29 08:09:35 -05:00
Seth Kerr
555ade7ff3
final change to ja flags i think
2021-04-28 20:42:13 -06:00
Seth Kerr
8090af07dd
fix ja build issue
2021-04-28 19:14:45 -06:00
Hosted Weblate
04948d5a40
Merge remote-tracking branch 'origin/main' into main
2021-04-29 00:25:37 +02:00
Dan Halbert
b2b6f53112
Merge pull request #4684 from hierophect/nrf-alarm-hotfix
...
NRF: Fix MP type checking macros
2021-04-28 18:25:32 -04:00
Lucian Copeland
5c4500dbfa
Fix MP type macros
2021-04-28 15:35:15 -04:00
root
cfac07c1cc
Wrap pulsein when maxlen is exceeded
2021-04-28 11:20:13 -05:00
Hosted Weblate
9cd255a55d
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-04-28 18:11:43 +02:00
Hosted Weblate
6b41757472
Merge remote-tracking branch 'origin/main' into main
2021-04-28 18:11:40 +02:00
Jonny Bergdahl
9b5d131bf6
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (972 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/sv/
2021-04-28 18:11:40 +02:00
Wellington Terumi Uemura
4834a21b9c
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (972 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/pt_BR/
2021-04-28 18:11:40 +02:00
Hugo Dahl
602835a629
Translated using Weblate (French)
...
Currently translated at 100.0% (972 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/fr/
2021-04-28 18:11:39 +02:00
Alvaro Figueroa
bc8b254d4f
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (972 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-04-28 18:11:39 +02:00
Reza Almanda
38c6234b84
Translated using Weblate (Indonesian)
...
Currently translated at 46.5% (452 of 972 strings)
Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/id/
2021-04-28 18:11:38 +02:00
Dan Halbert
d4d96bb25f
Merge pull request #4236 from jun2sak/nrf52-sleep
...
sleep and wakeup for nrf52
2021-04-28 12:11:31 -04:00
DavePutz
34014495d2
Merge pull request #47 from adafruit/main
...
Update from adafruit main
2021-04-28 10:16:01 -05:00
Seth Kerr
444c008731
removing changes from external flash devices
2021-04-27 17:55:56 -06:00
Seth Kerr
710397fd84
adding board to build.yml
2021-04-27 16:54:13 -06:00
Seth Kerr
2f09535c3a
removing duplicate file
2021-04-27 16:41:54 -06:00
Seth Kerr
e85091193b
adding CP Sapling Rev B
2021-04-27 16:30:44 -06:00
jposada202020
cb42acea53
better_phrasing
2021-04-27 17:43:25 -04:00
jposada202020
a512dd230d
word_order_better_phrasing
2021-04-27 17:34:45 -04:00