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
nm3210
929ee8d3b4
Fix pre-commit whitespace error
2021-04-30 14:16:13 -04: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
microDev
eebcd2eeaf
remove unsupported authmodes
2021-04-30 22:11:32 +05:30
microDev
6640db9555
make authmode settable
2021-04-30 21:35:02 +05:30
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
Dan Halbert
be7b2b00a8
uncrustify with newer version of uncrustify
2021-04-30 10:40:12 -04:00
nm3210
9c1466a330
Update Sparkfun Thing Plus RP2040 pins to match board
...
This fixes some missing and incorrectly-assigned pins for the SparkFun Thing Plus RP2040 protoboard so that they actually match what the board says. This also changes the default SPI pins from the SD card pins to the breakout pins on the side of the board.
2021-04-30 09:37:37 -04:00
microDev
7c845818b3
Merge branch 'main' into ap
2021-04-30 17:11:22 +05:30
Tsutomu IKEGAMI
11a9372da3
Set Xtal, Aref, and NC pins to be IGNORE_ed in microcontroller.pin for Wio Terminal.
2021-04-30 13:06:09 +09:00
Tsutomu IKEGAMI
d79d6ba688
Add I2S_* pin assignments to Wio Terminal board.
2021-04-30 13:03:29 +09:00
Mark
5ef9b10669
Merge pull request #4685 from microDev1/authmode
...
Add AuthMode class
2021-04-29 22:12:58 -05:00
Dan Halbert
b5efce12cd
delete hid .py; undo some debugging changes
2021-04-29 23:05:31 -04: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
Lucian Copeland
07b86fcb76
fix sleepmemory object redefine error
2021-04-29 17:28:06 -04: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
Lucian Copeland
bab5a22f0c
Fix build issues
...
H7 compatibility problems in port.c and peripherals/exti
NRF build failures due to new use of const for PinAlarm pin objects
Isolated board flash overage on blackpill_with_flash, remove audio modules
2021-04-29 14:48:16 -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
Kattni Rembor
0bf747870a
Fixing board definition.
2021-04-29 12:41:23 -04:00
microDev
1b972c51c3
add authmode class
2021-04-29 18:42:36 +05:30
Dan Halbert
f06d54524d
merge from adafruit
2021-04-28 23:48:26 -04: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
Lucian Copeland
9fe8d61656
Fix broken MP macros from 1.11 merge
2021-04-28 18:26:52 -04:00
Lucian Copeland
5c4500dbfa
Fix MP type macros
2021-04-28 15:35:15 -04:00
Lucian Copeland
9feef41c82
Merge remote-tracking branch 'upstream/main' into stm-alarm
2021-04-28 15:10:55 -04:00
Tsutomu IKEGAMI
0d25b95f0d
Add definitions of PB2[4-9] pins to microcontroller.pin for atmel-samd.
2021-04-29 02:19:34 +09:00
root
cfac07c1cc
Wrap pulsein when maxlen is exceeded
2021-04-28 11:20:13 -05: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
Tsutomu IKEGAMI
22c4abd28f
Add DAC* and RTL_* pin assignments to Wio Terminal board.
2021-04-28 18:57:21 +09:00
Dan Halbert
8500e846c6
partially working
2021-04-27 23:53:23 -04:00
Seth Kerr
e85091193b
adding CP Sapling Rev B
2021-04-27 16:30:44 -06:00
Dan Halbert
f98a54628b
wip: compiles
2021-04-27 14:37:36 -04:00
Scott Shawcroft
17fcd499b2
Merge pull request #4649 from tannewt/merge_1.11_2
...
Merge MicroPython v1.11 into CircuitPython
2021-04-27 11:02:02 -07:00
Scott Shawcroft
f99deeda68
Merge pull request #4668 from DavePutz/issue_4659
...
Increased possible pulsein length to ~65 ms.
2021-04-27 11:01:51 -07:00
Scott Shawcroft
9e183bbbba
Merge pull request #4674 from kattni/dotstar-pins
...
Adding clearer on-board DotStar pin names.
2021-04-27 10:56:47 -07:00
Kattni Rembor
4e1d2fa056
Adding clearer on-board DotStar pin names.
2021-04-27 12:52:24 -04:00
Melissa LeBlanc-Williams
d7faac11b8
Release display on FunHouse for DeepSleep
2021-04-27 09:09:23 -07:00
root
91739de71a
Increased max pulse to 65535 us
2021-04-26 18:52:15 -05:00
Scott Shawcroft
76033d5115
Merge MicroPython v1.11 into CircuitPython
2021-04-26 15:47:41 -07:00
Lucian Copeland
43840363c2
Fix submodule
2021-04-26 17:59:21 -04:00
Kattni
65c1ddb570
Merge pull request #4667 from ajs256/trinkey_pixel_fixes
...
Trinkey pixel fixes
2021-04-26 17:19:14 -04:00
anecdata
a1e2afadce
AP ip_info, gateway, & subnet
2021-04-26 00:22:51 -05:00
Dan Halbert
c26e49c2e6
wip: starting to try to compile
2021-04-25 23:17:41 -04:00
root
5bd1da21a2
Increased possible pulsein length to 32 ms.
2021-04-25 21:38:57 -05:00
Jeff Epler
92919c25c2
Merge pull request #4666 from DavePutz/issue_4660
...
Reset buffer index in PulseIn clear
2021-04-25 20:33:58 -05:00
ajs256
de3c5ff976
oh crud, i forgot a semicolon
2021-04-25 16:42:58 -07:00
anecdata
f20a53177b
add authmode to start_ap()
2021-04-25 18:20:18 -05:00
anecdata
747d72f5a5
redundant with system log
2021-04-25 18:18:45 -05:00
ajs256
4bafbca0c3
Trinkeys: Clear neopixels on board reset
2021-04-25 12:58:52 -07:00
root
d1861a6b9c
Reset buffer index in PulseIn clear
2021-04-25 14:24:21 -05:00
Limor "Ladyada" Fried
f7f6a42f3d
Merge pull request #4663 from zapwizard/patch-1
...
Update pins.c
2021-04-25 15:09:13 -04:00
zapwizard
889da596ff
Update pins.c
...
Both D0 and D1 were assigned to pin_GPIO7, fixed D0 to pin_GPIO6, which also matches the comment.
2021-04-25 13:10:52 -05:00
gamblor21
30f31639d3
Added statemachine deinit
2021-04-25 11:58:22 -05:00
jun2sak
872fff7fbb
simplify system_on_idle_until_alarm()
2021-04-25 23:59:21 +09:00
anecdata
c510c4d501
allow start/stop sta/ap (changing modes) when wifi.radio.enabled = False
2021-04-25 09:29:15 -05:00
Dan Halbert
9d1fcc3b14
merge from main
2021-04-25 10:27:52 -04:00
jun2sak
7accb8b173
modify copyright notice.
2021-04-25 19:57:21 +09:00
jun2sak
a17fcb6d1a
add copyright notice. remove obsolete comments.
2021-04-25 19:19:11 +09:00
anecdata
dc3c47d396
ap channel param
2021-04-25 00:22:08 -05:00
anecdata
354b442867
fixes
2021-04-24 19:36:11 -05:00
anecdata
2e52c0ae62
set all wifi modes; add sta start & sta/ap stop
2021-04-24 16:41:41 -05:00
Mark
ed374a89fb
Merge pull request #4655 from DavePutz/issue_4602
...
Issue 4602 - Correct timing of PulseOut on SAMD21
2021-04-24 10:45:10 -05:00
Dan Halbert
2ba2574ebf
Merge pull request #4619 from tyomitch/microbit
...
[build] Allow USB to be set to 0
2021-04-24 10:31:29 -04:00
Dan Halbert
80f05c76a8
Merge pull request #4654 from dhalbert/6.2.x-merge-1
...
Port #4645 to main
2021-04-24 10:29:52 -04:00
anecdata
4d267ef644
add get_ipv4_address_ap
2021-04-23 21:44:34 -05:00
Scott Shawcroft
80e8b4ac14
Merge pull request #4635 from jepler/pcc
...
WIP: Implement 'ParallelImageCapture' for samd51
2021-04-23 13:31:53 -07:00
Dan Halbert
454e78f41f
merge #4645 from 6.2.x to main
2021-04-23 13:33:58 -04:00
Artyom Skrobov
4e3c1d4a4c
[build] Allow USB to be set to 0
...
Unify USB-related makefile var and C def as CIRCUITPY_USB.
Always define it as 0 or 1, same as all other settings.
USB_AVAILABLE was conditionally defined in supervisor.mk,
but never actually used to #ifdef USB-related code.
Loosely related to #4546
2021-04-23 11:13:34 -04:00
Jeff Epler
34c4cc1bd9
samd: Rename dma_{allocate,free} channel
...
These are now used in the (video) parallel capture device as well.
2021-04-23 09:46:33 -05:00
Jeff Epler
f838ff9528
raspberrypi: Remove debug prints
2021-04-23 09:44:01 -05:00
Dan Halbert
346740e152
Merge pull request #4609 from Neradoc/add_nrf_countio
...
NRF: implement countio
2021-04-23 08:37:00 -04:00
anecdata
3d60ed1322
loc & common_hal start_ap(), + AP MAC getter
2021-04-22 22:55:32 -05:00
anecdata
7e95dc1261
ap additions to radio object
2021-04-22 22:23:33 -05:00
anecdata
bfc5eb1660
event_handler, init, and reset
2021-04-22 22:21:50 -05:00
Dan Halbert
8f73270f2b
Merge pull request #4646 from tannewt/merge_mp1.10
...
Merge in MicroPython v1.10
2021-04-22 13:16:27 -04:00
Jeff Epler
10fee3e673
raspberrypi: Increase PIO clock speed in ParallelImageCapture
...
.. this allows DIV_4 and DIV_2 resolutions to work without being
jumbled.
2021-04-22 12:14:44 -05:00
Jeff Epler
2def016fd0
raspberrypi: Use 32-bit elements in FIFO
...
.. these do come in the right
2021-04-22 12:14:03 -05:00
Jeff Epler
7fb751808f
raspberrypi: Implement ParallelImageCapture using PIO
...
.. based on code from Phil B.
2021-04-22 12:02:51 -05:00
Dan Halbert
f1b5249d3c
Fix esp32s2 uart.write() return value
2021-04-22 09:47:54 -04:00
Dan Halbert
64e0958916
wip: descriptor building
2021-04-21 23:25:36 -04:00
Scott Shawcroft
09f7b43c64
Merge MicroPython 1.10 into CircuitPython
2021-04-21 15:59:17 -07:00
Dan Halbert
b3ffb3ab1f
Return bytes written from RP2040 UART.write()
2021-04-21 18:38:35 -04:00
Lucian Copeland
8ce89860e6
Pass pre-commit formatting
2021-04-21 17:34:13 -04:00
root
0e2431048d
Fix PWMOut on SAMD21
2021-04-20 15:21:05 -05:00
Jeff Epler
46c9b1bc37
atmel-sam: Use DMA for ParallelImageCapture
...
This allows ctrl-c to interrupt the capture, and ensures we handle
interrupts & background tasks.
2021-04-20 13:52:44 -05:00
Jeff Epler
d50feebd2c
atmel-sam: Factor out find_sync_event_channel_raise
2021-04-20 13:33:11 -05:00
Jeff Epler
4dcbdac97e
Complete the 'horizontal_reference' rename
2021-04-20 11:33:32 -05:00
Dan Halbert
01979acd48
Merge pull request #4604 from tannewt/buffer_size
...
Assume max characteristic size when the client
2021-04-20 12:02:06 -04:00
Jeff Epler
5c5736ee1e
atmel-sam: Allow PWM to go up to cpu_frequency/2
...
24MHz is the nominal external clock to use with OV7670. (My testing
was actually at 16MHz)
2021-04-20 10:22:21 -05:00
Jeff Epler
99799cded6
imagecapture: implement to review suggestions
2021-04-20 10:21:32 -05:00
Scott Shawcroft
b057fb8a4b
codeformat
2021-04-19 22:22:44 -07:00
Limor "Ladyada" Fried
83c768b25d
Merge pull request #4627 from aramcon-badge/aramcon2-badge
...
Add board definition files for ARAMCON2 Badge
2021-04-19 15:17:47 -04:00