EmergReanimator
e8dd5d35d6
# WARNING: head commit changed in the meantime
...
Fixed STM SPI frequency settings.
Corrected default frequency settings in common_hal_busio_spi_construct.
Fixed common_hal_busio_spi_get_frequency.
2022-05-29 16:13:38 +02:00
foamyguy
ffc451b338
argument for backlight_pwm_frequency and use it in pyportal titano build
2022-05-28 12:01:05 -05:00
Scott Shawcroft
3cc46c74b9
Fix compiles
2022-05-27 15:39:55 -07:00
gamblor21
90fe20a153
Adding manual IP address set
2022-05-27 15:33:54 -05:00
Scott Shawcroft
9d10a3da66
Conditionalize LTO
2022-05-27 12:59:54 -07:00
Scott Shawcroft
c676253834
Switch translate() to the header file
...
This allows the compile stage to optimize most of the translate()
function away and saves a ton of space (~40k on ESP). *However*, it
requires us to wait for the qstr output before we compile the rest
of our .o files. (Only qstr.o used to wait.)
This isn't as good as the current setup with LTO though. Trinket M0
loses <1k with this setup.
So, we should probably conditionalize this along with LTO.
2022-05-27 10:33:53 -07:00
Scott Shawcroft
dc5565a5ce
Merge pull request #6436 from dhalbert/judicious-lto
...
LTO: Use -flto and -flto-partition only as needed
2022-05-27 10:31:06 -07:00
Dan Halbert
947f564672
tune LTO on nrf
2022-05-26 22:16:41 -04:00
Scott Shawcroft
67e9fb13bc
Merge pull request #6437 from blues/7.3.x
...
swan_r5 improvements
2022-05-26 15:20:22 -07:00
Dan Halbert
ca085150ee
disable traceback on samd21; re-enable onewireio on Metro m0
2022-05-26 15:33:04 -04:00
Dan Halbert
95fc7e4713
harmless change to force all ports to build
2022-05-26 11:52:58 -04:00
Dan Halbert
d74193c298
Use -flto and -flto-partition only as needed
2022-05-26 11:36:41 -04:00
George White
8539d6518e
flip CTS and RTS pinmux to match RX and TX
2022-05-26 00:06:00 +00:00
George White
99b23b96d9
fix comment typo and mention datasheet
2022-05-26 00:03:46 +00:00
George White
fb3077ccc2
Implement UART hardware flow control on SAMD chips
2022-05-25 21:34:06 +00:00
Matthew McGowan
321163da1a
feat(swan_r5): blink the LED on startup. set VUSB_SELECT and DISCHARGE to floating to avoid any potential issues with them being outputs.
2022-05-25 14:22:19 -07:00
Matthew McGowan
65a5ad09ab
feat(swan_r5): define an ext
attribute on the board, which contains attributes for the extended set of castellated pins
2022-05-25 14:21:03 -07:00
Matthew McGowan
5bbaa3b732
feat(swan_r5): the upper 1MB of flash (bank 2) is made available for the filesystem
2022-05-25 14:19:35 -07:00
Matthew McGowan
b607631ae1
feat(swan_r5): UF2 support, with UF2 family IDs assigned to stm32 chipsets.
2022-05-25 14:18:37 -07:00
Dan Halbert
38f91539dc
Merge pull request #6432 from CytronTechnologies/add-maker-zero-samd21
...
Add new board: Cytron Maker Zero SAMD21
2022-05-25 13:58:33 -04:00
Dan Halbert
1fb210bd40
Merge pull request #5491 from pypewpew/remove-gamepadshift
...
Remove gamepadshift module
2022-05-25 13:58:06 -04:00
Luqmanul Hakim Zulkifli
aef5bc40fb
Deleted white spaces
2022-05-26 00:13:27 +08:00
Dan Halbert
b143314b22
Espressif: fix allocation of multiple Incremental Encoders
2022-05-24 22:37:24 -04:00
Luqmanul Hakim Zulkifli
9ed71f0c09
Add Cytron Maker Zero SAMD21
2022-05-25 10:09:30 +08:00
Luqmanul Hakim Zulkifli
0b99967839
Add Cytron Maker Zero SAMD21
2022-05-25 10:08:58 +08:00
Luqmanul Hakim Zulkifli
46f4fcc42f
Add Cytron Maker Zero SAMD21
2022-05-25 10:08:17 +08:00
Luqmanul Hakim Zulkifli
9385f793dc
Add Cytron Maker Zero SAMD21
2022-05-25 10:07:33 +08:00
Luqmanul Hakim Zulkifli
6fa552e257
Delete board.c
2022-05-25 10:04:06 +08:00
Luqmanul Hakim Zulkifli
5453b331f7
Delete mpconfigboard.h
2022-05-25 10:03:53 +08:00
Luqmanul Hakim Zulkifli
8806f5b5d8
Delete mpconfigboard.mk
2022-05-25 10:03:45 +08:00
Luqmanul Hakim Zulkifli
9649d80ea3
Delete pins.c
2022-05-25 10:03:34 +08:00
Luqmanul Hakim Zulkifli
4e467b7f34
Add Cytron Maker Zero SAMD21
2022-05-25 09:46:20 +08:00
Radomir Dopieralski
c0152e7dab
Remove gamepadshift module
...
Everything should be using the keypad module instead.
Note: there are several boards that still had gamepadshift enabled. I
did not contact their authors to make sure they already switched to
keypad in their code and documentation. We should probably wait with
merging this for their go ahead.
2022-05-25 00:48:55 +02:00
Dan Halbert
791064a934
Merge pull request #6427 from dhalbert/8.0.0-onewireio
...
Remove busio.OneWire and bitbangio.OneWire in favor of onewireio.OneWire
2022-05-24 15:32:33 -04:00
Dan Halbert
ecd30d2338
Merge pull request #6428 from dhalbert/8.0.0-restore-rainbowio
...
restore rainbowio to small builds
2022-05-24 15:32:08 -04:00
Dan Halbert
8665e85ea6
Merge pull request #6424 from ladyada/main
...
add esp32s3 tft
2022-05-24 15:31:48 -04:00
Dan Halbert
99d7d0d8bb
Disable ulab for ESP32-S3 TFT
2022-05-24 14:59:34 -04:00
Scott Shawcroft
0ea72d61e0
Merge pull request #6425 from KurtE/teensy_retain_fs
...
Teensy Builds retain Filesystem
2022-05-24 11:03:47 -07:00
Dan Halbert
335c93c044
restore rainbowio to small builds
2022-05-24 12:34:08 -04:00
Dan Halbert
74c92ffe9e
Remove busio.OneWire and bitbangio.OneWire
2022-05-24 12:26:33 -04:00
Paint Your Dragon
92fa02effa
Change 12- to 16-bit scaling to match other ports
...
Result is identical, implementation just resembles other ports instead of being all 1337 about it.
2022-05-24 08:49:05 -07:00
Paint Your Dragon
c3f58193ca
Correctly scale analog reading per issue #4794
2022-05-24 08:46:39 -07:00
lady ada
e22de975b3
try just bitbangio remove
2022-05-24 11:46:03 -04:00
Paint Your Dragon
5ef1f2dd5a
Correctly scale analog reading per issue #4794
2022-05-24 08:45:14 -07:00
Paint Your Dragon
44b31b098e
Correctly scale analog reading per issue #4794
2022-05-24 08:44:09 -07:00
Paint Your Dragon
e9b9f0b13f
Correctly scale analog reading per issue #4794
2022-05-24 08:42:00 -07:00
Paint Your Dragon
eefba16644
Correctly scale analog reading per issue #4794
2022-05-24 08:40:51 -07:00
lady ada
9439ce04bd
try to remove some space?
2022-05-24 11:28:55 -04:00
KurtE
d47662c448
Teensy Builds retain Filesystem
...
Changed a few things in the link step that satisfies the teensy
loader apps, both the teensy.exe as well as the teensy_loader_cli
such that when you program the board again it should retain the
file sytem that is stored in the upper area of the Flash
2022-05-24 07:06:16 -07:00
lady ada
bb4beb3fab
add esp32s3 tft
2022-05-23 23:57:35 -04:00
Neradoc
3179db4ef4
move frozen adafruit_circuitplayground to express subdirectory
2022-05-23 22:11:26 +02:00
Dan Halbert
64df933a83
Merge pull request #6422 from dahanzimin/main
...
Repair mixgo_ce frozen lib to frozen/
2022-05-23 15:00:42 -04:00
arturo182
0f1973b037
Merge pull request #6418 from solderparty/stamp_round_board
...
Add a Round Carrier board file to the RP2040 Stamp build
2022-05-23 19:42:56 +02:00
Scott Shawcroft
943ab120ad
Merge pull request #6414 from dhalbert/pico-sdk-1.3.1
...
update pico-sdk to 1.3.1
2022-05-23 07:31:05 -07:00
dahanzimin
6454c5895b
Repair import and stock in under the frozen / directory
2022-05-23 11:19:11 +08:00
Michael Wisslead
2b0518233b
rp2040 PulseIn improvements
2022-05-23 00:45:06 +00:00
Michael Wisslead
893fc66d16
Use common_hal_rp2pio_statemachine_construct for PulseIn
2022-05-23 00:45:06 +00:00
arturo182
d2d3b27822
Add a Round Carrier board file to the RP2040 Stamp build
2022-05-22 15:52:25 +02:00
Dan Halbert
6f4f7e089e
Merge pull request #6383 from dahanzimin/main
...
Add MixGo CE board
2022-05-22 08:47:53 -04:00
大汉子民
e5a5ffb9b0
Update board.c
2022-05-22 11:37:39 +08:00
dahanzimin
37e376631a
Fix format issues
2022-05-22 11:22:58 +08:00
dahanzimin
b62799a798
Add mixgo_ ce_ Serial function, repair sdkconfig
2022-05-22 10:42:56 +08:00
Dan Halbert
9c643aa907
Merge branch '7.3.x' into merge-7.3.0-rc.1-to-main
2022-05-21 12:57:46 -04:00
Dan Halbert
338e14d9d4
shrink arduino_mkr1300
2022-05-21 10:21:59 -04:00
dahanzimin
3e47d24fb9
Update submodule and create tag
2022-05-21 10:52:14 +08:00
Dan Halbert
e852b28bb2
update pico-sdk to 1.3.1
2022-05-20 17:52:35 -04:00
Dan Halbert
309dab4c75
merge 7.3.0-rc.1 changes to main
2022-05-20 15:37:56 -04:00
Dan Halbert
f63b26c534
address jepler's comments and further squeezes
2022-05-20 10:10:55 -04:00
Dan Halbert
3c20b5f95f
use validator in mimx UART constructor
2022-05-20 00:04:49 -04:00
大汉子民
4356a12504
Update mpconfigboard.mk
2022-05-20 10:55:23 +08:00
大汉子民
73f2621cda
Repair No newline at end of file
2022-05-20 10:38:14 +08:00
大汉子民
525262cd9a
Merge branch 'main' into main
2022-05-20 10:04:02 +08:00
dahanzimin
e3896be345
Modify mixgoce_ Lib is a submodule
2022-05-20 09:46:55 +08:00
Fabian Affolter
f1f9ba2371
Add support for WeAct Studio Pico
2022-05-19 23:51:25 +02:00
Dan Halbert
a01dec1df9
message consolidation and more use of validators
2022-05-19 15:38:37 -04:00
Neradoc
8987bf18d0
Add Winbond flash substitute to boards
2022-05-16 22:39:25 +02:00
Dan Halbert
624a00ac45
shrink circuitplayground_express_displayio
2022-05-14 08:54:46 -04:00
Dan Halbert
9fb4582cc8
Merge pull request #6393 from todbot/main
...
fix SPI pin names qtpy esp32s3
2022-05-13 21:54:55 -04:00
Dan Halbert
936f5bf23e
Merge pull request #6338 from jepler/fix-display-invalid-sh1107
...
Fix display invalid sh1107
2022-05-13 20:33:43 -04:00
Tod Kurt
d2d08fc944
fix SPI pin names qtpy esp32s3
2022-05-13 16:48:13 -07:00
Dan Halbert
64ca3aa359
Merge pull request #6387 from SimonVail/main
...
Lilygo TTGO T-OI Plus ESP32C3
2022-05-13 18:31:50 -04:00
Dan Halbert
951eea7748
Merge pull request #6391 from tekktrik/doc/add-additional-builtins-docs
...
Add additional documentation for modules, builtin exceptions
2022-05-13 15:59:39 -04:00
Dan Halbert
28b14e05e3
shrink thunderpack_v12
2022-05-13 15:45:12 -04:00
SimonVail
1f0bdad083
Update ports/espressif/boards/lilygo_ttgo_t-oi-plus/mpconfigboard.mk
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2022-05-13 15:02:26 -04:00
Kattni
395b550fe3
Merge pull request #6389 from tannewt/add_ble_user_reset
...
Add two stage reset for BLE
2022-05-13 14:28:43 -04:00
Dan Halbert
9028bf213d
Merge pull request #6331 from pypewpew/pewpew_lcd
...
Add new board pewpew_lcd
2022-05-13 12:33:08 -04:00
Alec Delaney
289fdc1241
Added link to library and guide for rp2pio
2022-05-13 11:15:26 -04:00
Scott Shawcroft
3e85cfe26b
Fix ESP and HCI build
2022-05-12 15:23:26 -07:00
SimonVail
ef4d298ca8
Update pins.c
2022-05-12 17:49:48 -04:00
SimonVail
0d92b0a155
Update board.c
2022-05-12 17:46:49 -04:00
SimonVail
b1935975a2
Update board.c
2022-05-12 17:27:48 -04:00
Scott Shawcroft
269d51d023
Add two stage reset for BLE
...
This lets the BLE stack run through the wait period after a VM run
when it may be waiting for more writes due to an auto-reload.
User BLE functionality will have their events stopped. Scanning and
advertising is also stopped.
2022-05-12 13:20:44 -07:00
SimonVail
c5db1280ee
Update mpconfigboard.mk
2022-05-12 13:21:58 -04:00
SimonVail
6bdd128fb3
Add files via upload
2022-05-12 13:18:39 -04:00
SimonVail
f69a293795
Create sdkconfig
2022-05-12 13:18:17 -04:00
SimonVail
a4f505dcab
Delete ports/espressif/boards/Lilygo-T-oi-Plus-ESP32C3 directory
2022-05-12 13:17:17 -04:00
SimonVail
0b586e9c94
Update board.c
2022-05-12 12:43:52 -04:00
SimonVail
6fe728a9d2
Update ports/espressif/boards/Lilygo-T-oi-Plus-ESP32C3/pins.c
...
Co-authored-by: Neradoc <Neradoc@users.noreply.github.com>
2022-05-12 11:57:59 -04:00
SimonVail
6908f5a97e
Update ports/espressif/boards/Lilygo-T-oi-Plus-ESP32C3/board.c
...
Co-authored-by: Neradoc <Neradoc@users.noreply.github.com>
2022-05-12 11:57:52 -04:00
SimonVail
b6e6ee7505
Update ports/espressif/boards/Lilygo-T-oi-Plus-ESP32C3/mpconfigboard.mk
...
Co-authored-by: Neradoc <Neradoc@users.noreply.github.com>
2022-05-12 11:57:44 -04:00
SimonVail
b9ea7458ab
Add files via upload
2022-05-12 11:41:53 -04:00
SimonVail
35d78c135a
Create sdkconfig
2022-05-12 11:41:29 -04:00
SimonVail
f86ebe71b6
Delete Lilygo-T-oi-Plus-ESP32C3
2022-05-12 11:40:16 -04:00
SimonVail
0d1740ad27
Create Lilygo-T-oi-Plus-ESP32C3
2022-05-12 11:39:39 -04:00
大汉子民
d4b02e22ae
Thank you. I have applied for PID in espressif
2022-05-12 09:38:13 +08:00
Kong Wai Weng
b9c28742be
Added newline at the end of the file.
2022-05-11 15:30:45 +08:00
Kong Wai Weng
466f2a3644
Updated copyright information.
2022-05-11 15:25:32 +08:00
Kong Wai Weng
142ed2a024
Added Maker Feather AIoT S3.
2022-05-11 15:18:31 +08:00
Scott Shawcroft
9743aea7aa
Merge pull request #6334 from BigTuna94/add-rp2.65-f
...
Add new Keyboard - RP2.65-F
2022-05-10 16:52:39 -07:00
Radomir Dopieralski
e7735a3631
Add new board pewpew_lcd
2022-05-10 22:25:32 +02:00
dahanzimin
d48f961d0a
Add MixGo CE board
2022-05-10 18:56:13 +08:00
Dan Halbert
aa625f5ce4
Merge pull request #6366 from dhalbert/espressif-i2c-delay-fix
...
apply i2c delay fix from adafruit/esp-idf
2022-05-08 21:41:46 -04:00
Dan Halbert
bb46898572
Merge pull request #6361 from mwisslead/rp2040_pulsein_buffer_fix
...
Fix buffer issue for rp2040 PulseIn
2022-05-08 12:37:17 -04:00
Dan Halbert
8b026a2c38
apply i2c delay fix from adafruit/esp-idf
2022-05-08 09:49:18 -04:00
Jeff Epler
5f4f66774c
Merge pull request #6360 from jepler/statemachine-improvements
...
Statemachine improvements
2022-05-07 09:35:57 -05:00
Jeff Epler
561ed3739a
fix the docstrings
2022-05-07 07:49:16 -05:00
Dan Halbert
34427bd6ba
Update StateMachine.c
2022-05-06 22:36:24 -04:00
Michael Wisslead
b7882edd01
Fix buffer issue for rp2040 PulseIn
2022-05-07 00:57:10 +00:00
Jeff Epler
b482a732c6
StateMachine: add swap flag
...
Always use DMA if swap flag is enabled.
Improve docs a bit
2022-05-06 15:22:43 -05:00
Jeff Epler
23c0fc8354
add ability to get, clear txstall flag
...
This can be used to make sure a PIO has actually finished all data
it was schedule to receive via a 'once' background_write
2022-05-06 15:22:43 -05:00
Jeff Epler
f776749ca3
Key off len, not buf, to decide if anything to DMA
2022-05-06 15:22:43 -05:00
Jeff Epler
1a9034ff7c
rp2pio: Allow background_write(None) to terminate after complete loop
2022-05-06 15:22:42 -05:00
Dan Halbert
5edc59f070
Merge pull request #6337 from jepler/property-storage
...
Optimize flash storage of properties
2022-05-06 09:55:18 -04:00
Dan Halbert
30904a8638
Merge pull request #6354 from dhalbert/espressif-dio-fixes
...
espressif: check properly for pull values
2022-05-05 22:44:29 -04:00
Guy Dupont
02ec1cebf6
Fix pin mapping for thing plus 2040
...
GPIO 26 was mapped to GPIO 28
2022-05-05 21:11:32 -04:00
Jeff Epler
a9d929627a
minor comment update
2022-05-05 14:40:49 -05:00
Dan Halbert
0f3eb9f46e
espressif: check properly for pull values
2022-05-04 22:51:27 -04:00
Dan Halbert
03b1a0284e
Merge pull request #6352 from billvanleeuwen424/removeDuplicateInclude
...
Removed duplicate include, fixes issue #6278
2022-05-04 21:47:17 -04:00
Dan Halbert
27cbf1321c
Merge pull request #6350 from dhalbert/samd-SRC_C-conditionals
...
Compile more SAMD things conditionally
2022-05-04 21:46:26 -04:00
billvanleeuwen424
76040a9380
removed duplicate include per issue 6278
2022-05-04 14:57:37 -04:00
Dan Halbert
b71ea29a8b
Merge pull request #6330 from KurtE/rp2040_uart_rs485
...
[RP2040] Allow any GPIO pin for RS485 direction pin
2022-05-04 13:32:36 -04:00
Dan Halbert
a7ec8b02e9
Merge pull request #6328 from KurtE/mixrt_uart_rs485
...
[mimxrt (teensy) Allow Any GPIO pin for RS485 pin
2022-05-04 13:30:09 -04:00
Dan Halbert
98ae047525
Compile more SAMD things conditionallly
2022-05-04 11:41:48 -04:00
Dan Halbert
e25e177a6f
Merge pull request #6343 from dhalbert/missing-board-LED
...
add board.LED to Metro M4 AirLift LIte and PyRuler
2022-05-03 19:17:04 -04:00
KurtE
6378343bb3
As I mentioned in issue #6332 ,
...
there return of a read operation that times out with no data received
is inconsistent:
```
Adafruit CircuitPython 7.3.0-beta.1-31-g73f6b4867-dirty on 2022-04-30; Adafruit Feather RP2040 with rp2040
>>>
>>> import board, busio
>>> print(board.UART().read(5))
None
Adafruit CircuitPython 6.3.0 on 2021-06-01; FeatherS2 with ESP32S2
>>> import board,busio
>>> print(board.UART().read(5))
None
Adafruit CircuitPython 7.3.0-beta.1 on 2022-04-07; Adafruit Feather STM32F405 Express with STM32F405RG
>>> import board, busio
>>> print(board.UART().read(5))
None
Adafruit CircuitPython 7.3.0-beta.1-31-g73f6b4867-dirty on 2022-04-28; Teensy 4.1 with IMXRT1062DVJ6A
>>> import board, busio
>>> print(board.UART().read(5))
b''
```
Since I have a PR on this file anyway, I thought I would put in the change to make it consistent
with the other 3 board types I tried. Can not say about any of the others.
2022-05-03 13:39:49 -07:00
Dan Halbert
b181caaefc
add board.LED to Metro M4 AirLift LIte and PyRuler
2022-05-03 16:08:01 -04:00
Jeff Epler
7d7986b041
Add NEOPIXEL pin
...
Closes : #6307
2022-05-03 12:21:15 -05:00
Jeff Epler
510890b207
Enable squeezing property storage in flash
...
.. and enable it on atmel-samd and raspberrypi. On trinket_m0 this saves
96 net bytes of flash. There are 216 bytes actually saved by reducing
the flash storage size of the property descriptors, but added code in
several paths takes back over half of the 'raw savings'.
By organizing the "get-only" and "get-set" (but no delete) properties
each in a different section, we can represent then more efficiently.
Testing performed: that a get-only property can still be gotten but
can't be set or deleted; that a get-set property can sill be gotten or
set but can't be deleted. Tested on pygamer.
Because this requires linker file support, I only enabled it on two of
the ports.
2022-05-03 08:48:53 -05:00
Jeff Epler
78cf0a90af
Make MP_PROPERTY_GETTER / _GETSET fully declare the property
...
This will enable setting data attributes, namely, the section of the
symbol.
2022-05-03 08:48:53 -05:00
Jeff Epler
31da335cac
Introduce, use MP_PROPERTY_GETTER, _GETSET
...
Later, these can be changed in cunning ways to save flash storage.
2022-05-03 08:48:52 -05:00
Zach Richard
a23ede8bc4
update USB VID/PID codes to match pidcodes request
2022-05-02 19:49:30 -04:00
Tod Kurt
7e622c3ff7
mpconfigboard.h also needs neopixel tweak
2022-05-02 13:23:55 -07:00
Tod Kurt
5d4e964de0
fix qtpy_esp32s3_nopsram neopixel pins
2022-05-02 13:04:05 -07:00
KurtE
1fad381513
[RP2040] Allow any GPIO pin for RS485 direction pin
...
As I mentioned in issue #6310 while investigating that the Teensy port
did not support RS485_dir pin on normal GPIO pins, I found that it
was not implemented either as well on some other ports.
So was curious to implement it for RP2040 using same approach as I did
for the MIMXRT in the Pull Request #6328
That is I setup the specified pin as a normal GPIO pin in output mode
and then when you do a write operation it sets the GPIO pin logically
high, and when the write completes I set it logically low.
Note: knowing when I can set it low can be tricky, as you need to make
sure the full output has completed otherwise the data will be corrupted.
I am using: uart_tx_wait_blocking(self->uart);
Which looks like it is supposed to wait until the busy status is no
longer set, which the Reference manual mentioned, but this is leaving
the line logically set longer than I would like.
however I have tried running it with my hacked up version of the
Python Robotis DynamixelSDK and was able to talk to some AX servos.
I did have to change the library slightly for the RP2040, as the
library was erroring out when you did something like uart.read(5)
and it timed out without receiving anything. The RP2040 returned
None whereas I think the Teensy returned an empty set, which is what
it looks like the PySerial original code expects.
Not sure if anyone is interested in this, but thought i would
put it out as PR and see.
2022-04-30 14:31:08 -07:00
Dan Halbert
816a26e8b7
Merge pull request #6321 from dhalbert/samd21-ticks-for-display
...
Preserve ticks for displays across VMs
2022-04-28 09:37:21 -04:00
Michael Wisslead
e63a327107
Bound PulseIn start indexes to maxlen.
2022-04-28 02:28:34 +00:00
Dan Halbert
b25d810af9
Preserve ticks for displays across VMs
2022-04-27 20:06:47 -04:00
KurtE
73f6b48676
[mimxrt (teensy) Allow Any GPIO pin for RS485 pin
...
The existing code was setup that allowed you to specify an RTS
pin to be used as an RS485 direction pin, however there are no
RTS pins that are exposed on any of the Teensy 4.x boards.
Instead Arduino code base allowed you to specify any GPIO pin to
work instead. So I added the code in to facilitate this.
In addition the alternative code to wrap your own GPIO pin set high and low
around call(s) to uart.write() will not currently work, unless maybe you
fudge it and add your own delays as the write will return after the last
byte was pushed onto the UART’s hardware FIFO queue and as such if you
then immediately set the IO pin low, it will corrupt your output stream.
The code I added detects that you are setup to use the RS485 pin and
before it returns will wait for the UART’s Transfer complete status flag
to be set.
2022-04-27 11:26:08 -07:00
Dan Halbert
b7541088f4
shrink circuitplayground_express_crickit
2022-04-26 17:51:47 -04:00
Dan Halbert
7a77aae4be
shrink feather_m0_supersized
2022-04-26 16:52:43 -04:00
Dan Halbert
6b25ccf1a4
remove stray space
2022-04-26 14:26:42 -04:00
Dan Halbert
63abd9a9cf
Merge pull request #6312 from dhalbert/adjust-neopixel-timings
...
test and adjust NeoPixel timings on multiple ports
2022-04-26 13:18:47 -04:00
Dan Halbert
3a8fb4e956
Merge pull request #5852 from jepler/floppy
...
Add floppyio
2022-04-26 11:40:19 -04:00
Dan Halbert
c8e8171cec
Merge pull request #6300 from jepler/pio-continuous
...
rp2040: add a background write with looping to StateMachines
2022-04-26 10:09:02 -04:00
ZodiusInfuser
910662e833
Finalised motor 2040 pins
2022-04-26 12:56:31 +01:00
ZodiusInfuser
1ccf767112
Merge branch 'adafruit:main' into motor
2022-04-26 10:23:14 +01:00
Dan Halbert
4eeaf41edc
test and adjust NeoPixel timings on multiple products
2022-04-25 23:12:24 -04:00
Dan Halbert
0642917cf7
Merge pull request #6270 from FoamyGuy/tilegrid_bitmap_property
...
adding bitmap property to TileGrid
2022-04-25 09:09:28 -04:00
Dan Halbert
fdf8207e05
Merge pull request #6281 from ViktorWiz/w5100s-evb-pico
...
Added WIZnet board W5100s-evb-pico
2022-04-25 09:09:08 -04:00
Dan Halbert
5b7e0754dd
Merge pull request #6287 from KurtE/mimxrt_pwm
...
Fix PWM Support for the MIMXRT boards
2022-04-25 09:02:40 -04:00
Jeff Epler
1a89a2d366
fix doc build
2022-04-23 13:25:59 -05:00
Jeff Epler
989fb828d4
Revamp background writing
...
Now a 'once' and a 'loop' buffer can be specified.
'once' is useful for things like writing a neopixel strip in the background,
if you can guarantee the buffer contents are stable until the write is complete.
'loop' is useful for periodic things, like pwm & servos.
both together are useful for some special cases of pwm/servo, where a
transitional waveform needs to be played for one repetition and then
a new waveform needs to be played after that.
The API is renamed to reflect that it's a more generic 'background'
operation.
2022-04-23 13:09:36 -05:00
KurtE
8d9dc1fb93
Update ports/mimxrt10xx/supervisor/port.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 11:47:40 -07:00
KurtE
3c343cf1b8
Update ports/mimxrt10xx/supervisor/port.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 11:47:30 -07:00
Dan Halbert
3885bc9018
Merge pull request #6303 from DavePutz/issue_4452
...
Fix for issue #4452 - time.sleep on STM
2022-04-22 13:34:31 -04:00
KurtE
1312e5c759
Update ports/mimxrt10xx/supervisor/port.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:16:27 -07:00
KurtE
f102c15bb4
Update ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:15:40 -07:00
KurtE
79dd2a6cd5
Update ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
...
Fix Comment spelling
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:15:29 -07:00
KurtE
53b7caf13c
Update ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:15:01 -07:00
ViktorWiz
e8541e866c
fix end of file issue
2022-04-22 15:02:50 +09:00
ViktorWiz
28296f98f8
update pid
2022-04-22 14:59:28 +09:00
ViktorWiz
f91be019f6
Merge branch 'adafruit:main' into w5100s-evb-pico
2022-04-22 14:52:04 +09:00
root
289aaae954
Fix for issue #4452 - time.sleep on STM
2022-04-21 17:05:44 -05:00
Dan Halbert
76d54ca8ad
shrink sparkfun_redboard_turbo
2022-04-21 12:58:46 -04:00
Jeff Epler
457aba79f4
fix doc build
2022-04-20 08:09:38 -05:00
Dan Halbert
4aea8049c5
Merge pull request #6279 from mjs513/main
...
Added Settable Clock for MIMXRT BOARDS
2022-04-20 08:31:41 -04:00
Dan Halbert
1fcc73bc24
Merge pull request #6261 from KurtE/PortSerialHooksIssue
...
disable on mimxrt10xx (Teensy40 41) Serial port Hooks
2022-04-19 23:04:07 -04:00
Jeff Epler
144eb5dfd4
fix lost DMA IRQ
2022-04-19 16:42:27 -05:00
Jeff Epler
ebc426d9e6
Remove debug prints, improve docs
2022-04-19 16:39:04 -05:00
Jeff Epler
b128f180ca
switch to single single dma channel, fix some bugs
2022-04-19 16:33:51 -05:00
KurtE
49769cfea4
Convert to use debug rx/tx pins to trigger adding this code
...
As per review request
2022-04-19 14:02:16 -07:00
Jeff Epler
33d6d55675
the basics work
...
the sequence has to be a minimum length, 8 entries, but this problem
is not detected. I don't THINK this is an insurmountable problem.
2022-04-19 15:14:50 -05:00
Jeff Epler
33f5598acc
Stub 'continuous write' functionality
2022-04-19 11:35:43 -05:00
Neradoc
17bba7b17d
remove Adafruit_CircuitPython_BusDevice from frozen modules, it's built in now
2022-04-19 06:49:11 +02:00
Dan Halbert
6425e937b5
Merge pull request #6289 from stonehippo/samd51_mm_flash
...
Samd51 mm flash
2022-04-18 18:59:58 -04:00
KurtE
eab4867e61
Remove dead replaced code
...
As requested, I removed the dead code that was replaced
2022-04-18 15:46:36 -07:00
George White
3b5171c4ff
Move hook implementation to supervisor
2022-04-18 14:09:36 +00:00
Dan Halbert
4ab3881a82
Merge pull request #6282 from xuhow/elecfreaks_picoed
...
Elecfreaks picoed
2022-04-18 10:07:17 -04:00
George White
32fc084b39
Removed compiler flag in favor of MP_WEAK implementation
2022-04-18 13:10:12 +00:00
George White
0ba93b20e5
Setup flash pins on Sparkfun SAMD51 Micromod
2022-04-18 13:10:12 +00:00
mjs513
208bfb33aa
Deleted Warnings Chanaged ValueError Method
2022-04-17 15:04:16 -04:00
KurtE
02a0939d2e
Fix PWM Support for the MIMXRT boards
...
There were two main issues with the PWM support.
The first is they would fail to work properly if the board goes
into low power mode, when you do things like: time.sleep(0.25)
Can make partially work with this by turning on the proper flags
in each of the FlexPWMTimer Timers/sub-timers, but this did not
appear to work if for example you have both A and B channels
enabled.
Second main problem is that the code did not work with the X
channel of each timer/sub-timer. It looks like someone had
earlier started support for this, But was not sufficient.
Needed to bypass the SDK code and get it closer to the PJRC code.
That is we set the PWM_CTRL_FULL_MASK, which then uses base->SM[submodule].VAL1 to control
when the timer is reset, so it sets up your cycle/frequency. But then this implies that X channel
which uses 0, 1 has to be handled specially. So for the different channels:
A - Uses VAL2 to turn on (0) and VAL3=duty to turn off
B - Uses VAL4 to turn on (0) and VAL5 to turn off
X - As mentioned above VAL1 turns off, but its set to the timing for freqency. so
VAL0 turns on, so we set it to VAL1 - duty
2022-04-16 09:00:45 -07:00
mjs513
0b6c451fdf
Add Overclocking Warnings to Processor.c
2022-04-16 11:01:50 -04:00
mjs513
fd41c1ac5b
Update based on PR Comments
2022-04-14 06:45:16 -04:00
Xu Hao
9c1b44a030
Modify USB VID and PID of the Pico:ed
2022-04-14 17:42:04 +08:00
ViktorWiz
b30d2e0889
update w5100s-evb-pico mpconfigboard.h
2022-04-14 14:35:23 +09:00
root
716497c132
corrected pre-commit errors
2022-04-13 12:04:28 -04:00
root
60e330fb0d
Added Settable Clock for MIMXRT BOARDS
2022-04-13 09:47:55 -04:00
ZodiusInfuser
8cce2e6406
Updated motor pin names
2022-04-12 15:20:28 +01:00
Xu Hao
71a7ec6f76
Add ELECFREAKS Pico:ed board.
2022-04-12 16:10:02 +08:00
Dan Halbert
7be66a5733
Merge pull request #6265 from KurtE/teensyMM
...
Add Teensy MicroMod board
2022-04-11 12:31:42 -04:00
KurtE
f95a68a37c
Rename the board name
...
Renamed the board both name of directory within boards, but also the
name reported board name: board_id -- sparkfun_teensy_micromod
Adafruit CircuitPython 7.3.0-beta.0-10-g2a3eb49da-dirty on 2022-04-10; SparkFun Teensy MicroMod Processor with IMXRT1062DVL6A
2022-04-10 16:56:51 -07:00
BigTuna94
01cff3c4f8
add MIDI to frozen libs
2022-04-10 14:10:07 -04:00
Limor "Ladyada" Fried
df74c681d2
Merge pull request #6273 from KurtE/t4x_board_dir_add_txrx_names
...
Add to board object other Serial and I2c pin names
2022-04-10 12:08:41 -04:00
foamyguy
948040f1f0
disable onewire instead of displayio on boards without room
2022-04-10 10:00:37 -05:00
KurtE
ecf2f1c80c
Add to board object other Serial and I2c pin names
...
While testing out this and the new MicroMod Teensy port, @mjs513
and myself found it desirable to have logical pin names for the
different Serial UART objects. It is a lot easier and clearer
to use and maintain to do something
like: uart4 = busio.UART(board.TX4, board.RX4)
than have to go look up the pin numbers for each board.
2022-04-10 05:39:43 -07:00
Dan Halbert
c3cfbc1259
Force pin 21 high; patch; need to diagnose further
2022-04-09 22:03:16 -04:00
foamyguy
7ad5fa511e
disable displayio for some boards
2022-04-09 16:24:06 -05:00
KurtE
7ff0036a26
Fix the pre-check stuff
2022-04-08 15:59:27 -07:00
KurtE
2a3eb49da7
Update the pins.c
...
I fixed a couple issues in the pin name definitions.
The pin names are sort of Teensy centric in that the priority is given
to the pin names you would use in Arduino like D0, D1, ...
But also added names for the MicroMod names in particular the names
on the front of the ATP carrier board
Also updated manufacturer to be both PJRC and Sparkfun
2022-04-08 07:41:51 -07:00
KurtE
93e9e3ad90
Fix end of line
2022-04-07 15:52:01 -07:00
KurtE
03e0acde94
Trying to cleanup the pre build messages
2022-04-07 14:11:22 -07:00
KurtE
2cb422fb19
Create W25Q128JV.ld
...
Add flash file needed for Teensy MicroMod,
2022-04-07 12:09:56 -07:00
Jeff Epler
766bf8f671
disable floppyio on kicksat-sprite
2022-04-07 10:57:37 -05:00
Jeff Epler
f7be4345d9
Merge remote-tracking branch 'origin/main' into floppy
2022-04-07 08:37:46 -05:00
ZodiusInfuser
769b182da4
Added definition for upcoming Pimoroni motor board
2022-04-07 07:24:55 +01:00
Dan Halbert
d5deddcaf5
Merge pull request #6207 from domdfcoding/esp32-rotaryio
...
Add espressif rotaryio divisor support.
2022-04-06 21:35:02 -04:00
KurtE
a74ec22aa4
Start setting up a Teensy MicroMod port
...
I have done a first pass through the files
this also includes a new VID/PID from sparkfun
2022-04-06 17:58:22 -07:00
KurtE
219ef5e407
disable on mimxrt10xx (Teensy40 41) Serial port Hooks
...
As mentioned in issue #6241 the commit to setup port hooks is now
causing all input/output that are to go to the Mu window to also
go to the LpUart that is defined the port serial.c
and in this case it goes to lpuart4, which on Teensy 4, 4.1 is
used on Arduino Serial2. With this new code this port no longer
works properly.
This is one way to solve it, in that there is a #if defined() that
if not set, all of the code in this file is ignored and the higher
level supervisor stub versions of these functions will be used, which
don't interfere with Serial2 and my test sketch works again.
Note: the PR for Switch to Port Serial Hooks, also changed code in
other ports. I have not tried to see how.
There are other more global fixes for this, in which maybe a higer
level #if that disables the code within the top level supervisor. Or
could be software controlled
Again this may not be the final solution, but at least it gets
Serial2 up and running agin.
2022-04-06 15:58:27 -07:00
Dan Halbert
dbb6f5f16c
Merge pull request #6246 from DavePutz/issue_6148
...
Don't reset GPIO4 on the MagTag (used for voltage monitoring)
2022-04-06 13:22:01 -04:00
Dominic Davis-Foster
f297e872d6
Account for divisor when overriding position.
2022-04-06 18:13:59 +01:00
Dan Halbert
2693a4cfe1
Merge pull request #6069 from gamblor21/uzlib-module
...
zlib Module
2022-04-06 12:06:44 -04:00
Dan Halbert
1a329cfd11
Merge pull request #6029 from jepler/pio-wrap
...
raspberry: StateMachine: Add support for wrap=, wrap_target=
2022-04-06 11:55:02 -04:00
Dan Halbert
99dc4029dc
Espressif: disable pull-up on AnalogIn creation
2022-04-06 11:33:56 -04:00
Pontus Oldberg
286e26edf0
Added support for 4MB flash.
2022-04-06 11:08:22 +02:00
ViktorWiz
76efdfd9a6
initial commit for w5100s-evb-pico
2022-04-06 14:52:28 +09:00
root
b993313ac1
Don't reset GPIO4 (used for voltage monitoring)
2022-04-05 11:30:12 -05:00
Jeff Epler
fe98248a3d
Merge remote-tracking branch 'origin/7.2.x' into merge-7.2.x
2022-04-05 08:45:13 -05:00
Jeff Epler
8cd09b1f0d
Merge pull request #6240 from dhalbert/7.2.x-rp2040-clear-uart-rtic-interrupt
...
handle clearing both RXIC and RTIC interrupts
2022-04-05 08:43:22 -05:00
Dan Halbert
47d3d0d7f8
Merge pull request #6202 from jepler/issue5985
...
samd: Don't rely on RTC interrupt
2022-04-05 09:16:40 -04:00
Dan Halbert
4cccc1a036
handle clearing both RXIC and RTIC interrupts
2022-04-04 23:55:08 -04:00
Jeff Epler
fa4b4fa639
nrf: Correctly mark PWM unused during reset
2022-04-04 10:08:54 -05:00
Mark
8ed7b114cd
Merge branch 'main' into uzlib-module
2022-04-03 11:48:37 -05:00
gamblor21
9d67e62f4d
Removed from small board
2022-04-03 11:47:19 -05:00
gamblor21
7b586e077c
Removed from small boards
2022-04-02 12:22:14 -05:00
Tod Kurt
390a473dda
add board.DISPLAY since display already set up by CirPy
2022-04-01 15:08:43 -07:00
Dominic Davis-Foster
319ca8560c
Always configure the second PCNT channel.
2022-03-31 20:00:34 +01:00
Dan Halbert
d9418fb7a3
Merge pull request #6184 from PontusO/main
...
Added Challenger 840 board.
2022-03-30 21:18:43 -04:00
Dan Halbert
ec5c9507b9
Merge pull request #6187 from prplz/espressif-uart-workflow-fixes
...
Espressif: Fix interrupts in UART workflow
2022-03-30 21:18:02 -04:00
Dan Halbert
6fd968fc12
Merge pull request #6199 from erongd/muselab-wrover-spiram-fix
...
enable SPIRAM support on muselab nanoESP32S2 board
2022-03-30 21:14:59 -04:00
Dan Halbert
f059f7180c
Merge pull request #6208 from ZodiusInfuser/badger
...
Improvement to Badger 2040 operation on battery
2022-03-30 13:35:47 -04:00
ZodiusInfuser
336abdfbc7
Switch variable to extern
2022-03-30 17:44:36 +01:00
Pontus Oldberg
f2d10237d2
Merge branch 'adafruit:main' into main
2022-03-30 16:43:39 +02:00
BigTuna94
dd933c7d06
add NeoPixel lib to firmware
2022-03-30 09:17:26 -04:00
Dan Halbert
b032d42a71
Update ports/espressif/boards/adafruit_feather_esp32s2/pins.c
2022-03-29 12:46:58 -04:00
lady ada
2563c509f7
fix automatic i2c enablement with rev C
2022-03-29 12:46:51 -04:00
ZodiusInfuser
f07cfdd80c
Linting fixes
2022-03-28 18:34:39 +01:00
Dan Halbert
c6bfe54dc8
Merge pull request #6209 from ZodiusInfuser/servo
...
Pin rename on Servo2040 to match schematic and C++/MP board defs
2022-03-28 13:29:27 -04:00
ZodiusInfuser
c2fb44b36c
Set enable pin to high during boot
2022-03-28 15:56:02 +01:00
ZodiusInfuser
b44a2a0c8e
Updated pin name to match schematic
2022-03-28 14:07:08 +01:00
Dominic Davis-Foster
6d025a239e
Add espressif rotaryio divisor support.
2022-03-28 09:04:02 +01:00
gamblor21
0d3f45bef8
Remove move DecompIO files
2022-03-27 16:18:56 -05:00
Michael Himing
f96cd7361d
Fix esp32s2 build
2022-03-27 10:09:23 +11:00
Jeff Epler
dd73182441
Merge pull request #6190 from tannewt/esp32s3_usb_devkit
...
Add ESP32-S3-USB-OTG board
2022-03-26 15:05:30 -05:00
Jeff Epler
35aa32bec0
Merge pull request #6193 from tannewt/fix_empty_mdns
...
Fix MDNS crash on S2
2022-03-26 15:05:17 -05:00
Jeff Epler
372306411a
samd: Don't rely on RTC interrupt
...
I instrumented RTC_Handler and determined that on SAMD51 it was possible
for the interrupt to be delivered well before the actual overflow of the
RTC COUNT register (e.g., a value as small as 0xffff_fffd could be seen
at the time of overflow)
Rather than depending on the overflow interrupt coming in at the same time
as COUNT overflows (exactly), rely only on observed values of COUNT in
_get_count, overflowing when it wraps around from a high value to a low
one.
With this change, PLUS a second change so that it is possible to warp
the RTC counter close to an overflow and test in 20ms instead of 3 days,
there was no problem detected over 20000+ overflows. Before, a substantial
fraction (much greater than 10%) of overflows failed.
Fixes #5985
Change to common-hal/rtc/RTC.c for time warping (plus make rtc_old_count non-static):
```patch
void common_hal_rtc_set_calibration(int calibration) {
+
+ common_hal_mcu_disable_interrupts();
+
+ RTC->MODE0.COUNT.reg = 0xffffff00;
+ rtc_old_count = 0;
+ do {
+ while ((RTC->MODE0.SYNCBUSY.reg & (RTC_MODE0_SYNCBUSY_COUNTSYNC | RTC_MODE0_SYNCBUSY_COUNT)) != 0) { }
+ }
+ while(RTC->MODE0.COUNT.reg < 0xffffff00);
+ common_hal_mcu_enable_interrupts();
+
+ mp_printf(&mp_plat_print, "Warping RTC in calibration setter count=%08x rtc_old_count=%08x\n", RTC->MODE0.COUNT.reg, rtc_old_count);
```
Test program:
```python
import time
from rtc import RTC
i = 0
while True:
RTC().calibration = 1 # Warps to ~16ms before overflow, with patch to RTC code
t0 = time.monotonic_ns()
et = t0 + 20_000_000 # 20ms
while (t1 := time.monotonic_ns()) < et: pass
i += 1
print(f"{i:6d}: duration {t1-t0}")
if t1-t0 > 200_000_000: break
print()
```
2022-03-25 14:48:03 -05:00
Michael Himing
686012426d
Espressif: Fix interrupts in UART workflow
2022-03-25 16:20:04 +11:00
Eric Rong
7ad6fa8df5
enable SPIRAM support on muselab nanoESP32S2 board
2022-03-24 16:46:13 -07:00
Scott Shawcroft
fcde108d03
Merge pull request #6194 from jepler/revamp-duplicate-usb-check
...
Improve the USB vid:pid duplicate checker
2022-03-24 14:57:48 -07:00
Scott Shawcroft
ac7977ba75
Merge pull request #6191 from tannewt/esp_3_wire_spi
...
Fix 3-wire SPI on ESP
2022-03-24 14:51:16 -07:00
Scott Shawcroft
9d4c74a87e
Merge pull request #6197 from ZodiusInfuser/servo
...
Added board definition for upcoming Pimoroni servo driver.
2022-03-24 14:44:44 -07:00
jerryneedell
bcec1e44f0
add status LED to nrf pca10059 dongdle
2022-03-24 15:05:02 -04:00
ZodiusInfuser
8e98be2704
Added additional constants
2022-03-24 18:32:39 +00:00
ZodiusInfuser
9c81ea86e9
Added board definition for upcoming Pimoroni servo driver.
2022-03-24 16:07:04 +00:00
Jeff Epler
d91ca7369c
Merge remote-tracking branch 'origin/main' into revamp-duplicate-usb-check
2022-03-24 09:44:41 -05:00
Jeff Epler
a07ac72cc5
Improve the USB vid:pid duplicate checker
...
To me, it made more sense to track which boards go together in a cluster;
when reviewing a request to actually use a duplicate vid/pid, you want
to know what board(s) it is aliasing.
I also revamped the detection of non-USB boards so that a board .mk file
that couldn't be parsed by the code here would raise a problem instead
of just being skipped for the purposes of checking.
There were some lines with comments on the end, and some variation in
capitalization of the IDs. These are all normalized and a (sometimes
unfriendly!) error printed when it's incorrect.
Before this, here were some ways to trick the duplicate vid/pid checker:
```
USB_PID = 0XABCD
USB_PID = 0xAbCd
USB_PID = 0xABCD # harmless comment?
```
None of these things were ever done on purpose.
2022-03-24 09:42:11 -05:00
Scott Shawcroft
8642dc4aa7
Fix MDNS crash on S2
...
Fixes #6186
2022-03-23 17:17:48 -07:00
Scott Shawcroft
380a7087d4
Fix 3-wire SPI on ESP
...
Simplifying the checks fixed it.
Fixes #6141
2022-03-23 14:53:46 -07:00
Scott Shawcroft
e13d32b832
Add ESP32-S3-USB-OTG board
...
This board has both types of USB connectors, a display and buttons
to select items on the display. It also has a micro-B connector for
the UART output.
2022-03-23 14:10:26 -07:00
Scott Shawcroft
ee4c501936
Merge remote-tracking branch 'adafruit/main' into c3_serial_jtag
2022-03-23 12:17:02 -07:00
Pontus Oldberg
c7b28eb2ef
Update ports/nrf/boards/challenger_840/pins.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:49 +01:00
Pontus Oldberg
d26297ae98
Update ports/nrf/boards/challenger_840/pins.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:40 +01:00
Pontus Oldberg
7901850bb8
Update ports/nrf/boards/challenger_840/pins.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:28 +01:00
Scott Shawcroft
2fa182147b
Fix STM non-F4 builds
2022-03-22 23:07:38 -07:00
Scott Shawcroft
f5d90fc84f
Switch to port_serial_* hooks
...
This makes it easier to integrate port specific serial alongside
the common approaches.
2022-03-22 19:40:33 -07:00
Pontus Oldberg
5e09ed611e
Added Challenger 840 board.
2022-03-22 21:36:54 +01:00
Neradoc
367e0ea901
Enable rgb status LED on MakerDiary USB Dongle
2022-03-22 20:53:12 +01:00
Scott Shawcroft
110857c12e
Actually turn on serial over Serial/JTAG for QTPy
2022-03-22 11:45:47 -07:00
Scott Shawcroft
b8d1bb1d5d
Shrink C3 builds
2022-03-22 10:46:57 -07:00
Scott Shawcroft
4363361c87
Board definition clean up
...
Removes:
* AUTORESET_DELAY_MS which never did anything but was introduced
somehow.
* CIRCUITPY_BOOT_BUTTON in all but one ESP board because they all have
them. There is a default based on the strapping pins.
* BOARD_USER_SAFE_MODE_ACTION because it was all the same for boards
with boot buttons. Now the safe mode code manages the message.
2022-03-21 17:58:43 -07:00
Scott Shawcroft
623b6fad16
Fix nested categories in update_sdkconfig.py
...
Also, mark QTPy C3 as BIN only.
2022-03-21 17:04:19 -07:00
Scott Shawcroft
6dd9db31b3
Add USB to Serial/JTAG support for REPL
...
Adds Adafruit QT Py C3 board that uses it. Also revamps size
check script to work for S3 and C3 as well.
Fixes #6030
2022-03-21 14:03:57 -07:00
Jeff Epler
4465adfe01
Merge pull request #6175 from tannewt/mdns
...
Add mdns module
2022-03-21 15:55:03 -05:00
Scott Shawcroft
92d946fcac
Guard against NULL result
2022-03-21 10:15:46 -07:00
lady ada
fdf27eee12
add feather esp32-s3 8mb flash, 0 psram
2022-03-19 23:04:20 -04:00
Scott Shawcroft
6f0d62d85e
Formatting and shrink build size on C3
2022-03-18 12:05:54 -07:00
Scott Shawcroft
8319faa032
Merge pull request #6155 from prplz/lilygo_ttgo_t-01c3
...
Add board lilygo_ttgo_t-01c3
2022-03-17 18:41:05 -07:00
Jeff Epler
e9d81c2826
Add mdns module
...
This allows for CircuitPython to resolve a .local domain and find
other devices with MDNS services.
First step for #6174
2022-03-17 18:16:16 -07:00
Dan Halbert
bad6cdcfa5
Merge pull request #6160 from tannewt/merge_7.2.2
...
Merge 7.2.2 changes into main
2022-03-17 20:02:30 -04:00
Scott Shawcroft
51701e6abe
Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2
2022-03-17 14:15:55 -07:00
Scott Shawcroft
78cb61c7a3
Turn off traceback on bluemicro833
2022-03-17 11:38:27 -07:00
Michael Himing
da92d508c2
lilygo_ttgo_t-01c3: Add creation ID
2022-03-17 19:21:34 +11:00
Michael Himing
de168b106c
Add board lilygo_ttgo_t-01c3
2022-03-17 17:24:24 +11:00
Scott Shawcroft
c098474854
Disable aesio and traceback on matrixportal to save space
2022-03-16 10:41:17 -07:00
Dan Halbert
af9f80daeb
Merge pull request #6144 from tannewt/back_to_idf4.4
...
Update ESP-IDF to fix PinAlarm
2022-03-15 17:10:42 -04:00
Scott Shawcroft
dcc3ec171e
Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2
2022-03-15 13:56:11 -07:00
Scott Shawcroft
4ffbf0830b
Merge pull request #6157 from arms22/ssci_isp1807_micro_board
...
Add board ssci_isp1807_micro_board
2022-03-15 13:42:34 -07:00
Scott Shawcroft
1a73b44679
Merge pull request #6156 from arms22/ssci_isp1807_dev_board
...
Add board ssci_isp1807_dev_board
2022-03-15 13:41:54 -07:00
Scott Shawcroft
fd17ba6d91
Merge pull request #6143 from ZodiusInfuser/badger
...
Added built-in display bringup for Badger2040
2022-03-15 13:28:00 -07:00
arms22
2b4917bbf5
change USB_PID
2022-03-15 14:54:29 +09:00
arms22
7482148a78
Add board ssci_isp1807_micro_board
2022-03-15 14:39:32 +09:00
arms22
b671ba81b9
Add board ssci_isp1807_dev_board
2022-03-15 14:29:24 +09:00
Dan Halbert
ff0b3a9f50
Merge pull request #6153 from tannewt/refine_autoreload
...
Further refine autoreload
2022-03-14 22:22:08 -04:00
BigTuna94
c919e9c2cc
fix duplicate reference names for DSN export
2022-03-14 21:02:14 -04:00
Scott Shawcroft
f602296e59
Re-enable BLE on MatrixPortal. Remove PortalBase
...
We have a guide that uses it. It was removed in #6043 without
realizing that.
Fixes #6152
2022-03-14 17:04:46 -07:00
Scott Shawcroft
32ac396a41
Further refine autoreload
...
This unifies the delay into the post-run delay that also waits
for user input and fake sleep. This ensures we always delay.
Previous code would only delay if the code.py was running when
autoreload was triggered. Now it will always delay.
We also now suspend autoreload when a USB write starts and then
resume on completion. This should prevent reloading in between
sectors of a single write.
2022-03-14 16:49:30 -07:00
ZodiusInfuser
af2862ead9
Removed trailing whitespace
2022-03-14 22:28:28 +00:00
ZodiusInfuser
a778469082
Inverted the display pixels to match the expected CPY behaviour
2022-03-14 11:12:03 +00:00
Dan Halbert
f13d218749
Merge pull request #6125 from tannewt/usb_host
...
Start of USB host API
2022-03-11 21:41:28 -05:00
Scott Shawcroft
7cb66dd316
Merge pull request #6142 from dhalbert/7.2.x-autoreload-fake-sleep
...
7.2.x autoreload rework (again)
2022-03-11 16:46:04 -08:00
Scott Shawcroft
a719fabbb6
Shrink bluemicro833 build
2022-03-11 16:04:12 -08:00
Scott Shawcroft
96dd11a198
Update ESP-IDF to fix PinAlarm
...
Fixes #5973
2022-03-11 14:40:49 -08:00
ZodiusInfuser
eab5f00548
Added built-in display bringup for Badger2040
2022-03-11 20:10:42 +00:00
Dan Halbert
e4cd9690f1
rework auto-reload delay logic
2022-03-11 14:03:04 -05:00
Dan Halbert
862210b3fb
Merge pull request #6135 from CircuitART/main
...
merge hexky_s2 board
2022-03-11 07:48:54 -05:00
CircuitART
43bd2c41e0
Update pins.c
2022-03-11 13:27:08 +08:00
CircuitART
597430ef96
Update pins.c
2022-03-11 12:26:49 +08:00
CircuitART
016bc00f01
Update pins.c
...
fixed
2022-03-11 11:54:32 +08:00
Dan Halbert
dbc8a312a2
Merge pull request #6137 from dhalbert/7.2.x-__future__
...
Backport from __future__ import annotations from #6117
2022-03-10 20:46:05 -05:00
Scott Shawcroft
c9ec5c89b6
Fix ESP32-S3 box display color order
2022-03-10 15:50:07 -08:00
Dan Halbert
19e7647f3d
turn off MIDI on sensebox_mcu for sapce
2022-03-10 18:20:04 -05:00
Dan Halbert
a7260a8b61
squeeze arduino_zero further
2022-03-10 15:56:51 -05:00
Dan Halbert
c5947fd6de
squeeze arduino_zero and sensebox_mcu
2022-03-10 12:46:08 -05:00
foamyguy
2f83264f09
update nina-fw submodule
2022-03-10 12:24:43 -05:00
Dan Halbert
6ddab0f3c8
shrink matrixportal_m4
2022-03-10 11:20:44 -05:00
CircuitART
4bfe9e53df
merge hexky_s2 board
...
Hello, please add support to my custom esp32-s2 board.
thanks
2022-03-10 13:27:14 +08:00
Scott Shawcroft
0957c1546f
Merge pull request #6132 from dhalbert/fix-autoreload
...
Make autoreload checking more robust
2022-03-09 14:02:15 -08:00
Dan Halbert
6465d81918
Update ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.h
...
whoopsies
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2022-03-09 13:33:54 -05:00
Dan Halbert
3089c9b7fd
Merge pull request #6128 from tannewt/gcc11_stringop
...
Fix SAMD51 builds on GCC11.2
2022-03-09 13:32:56 -05:00
Dan Halbert
9b2e22a6df
Make autoreload checking more robust
...
- Add reset for autoreload. De-request ticks.
- Separate state a little more in autoreload.c
- Rename some routines.
- Remove redundant settings of CIRCUITPY_AUTORELOAD_DELAY_MS.
2022-03-09 11:07:55 -05:00
Scott Shawcroft
45f9522a63
Fix EVK status led to be inverted
2022-03-08 18:15:43 -08:00
Dan Halbert
442026548f
Merge pull request #6084 from fabaff/lilygo-ttgo-esp32-s2
...
Add support for LILYGO TTGO T8 ESP32-S2-WROOM
2022-03-08 21:00:44 -05:00
Scott Shawcroft
96f5eec2ee
Add Teensy 4.1 power pin and fix SWD for DEBUG=1
2022-03-08 17:17:07 -08:00
Michael Himing
d933f8ac50
Espressif: Fix i2c pullup detection
2022-03-09 07:36:17 +11:00
Fabian Affolter
0a72420dcb
Add support for LILYGO TTGO T8 ESP32-S2-WROOM
2022-03-08 20:07:37 +01:00
Fabian Affolter
1b1b363515
Add support for LILYGO TTGO T8 ESP32-S2
2022-03-08 19:56:41 +01:00
Scott Shawcroft
4ac6ef0086
Fix SAMD51 builds on GCC11.2
...
Fixes #5351
2022-03-08 10:41:34 -08:00
Dan Halbert
1c8f671f0a
Merge pull request #6118 from pewpew-game/parallel-reset-optional
...
paralleldisplay: reset and read pins should be optional
2022-03-08 09:34:25 -05:00
Dan Halbert
05a4d24a0f
Merge pull request #6117 from dhalbert/__future__
...
implement `from __future__ import annotations`
2022-03-08 09:33:36 -05:00
Dan Halbert
ab0a7a8515
Merge pull request #6126 from prplz/fix-espressif-pullup-detection
...
Espressif: Fix i2c pullup detection
2022-03-08 09:28:06 -05:00
Michael Himing
bc1dade304
Espressif: Fix i2c pullup detection
2022-03-08 16:39:24 +11:00
Dan Halbert
eff6057fa3
shrink matrixportal_m4
2022-03-07 21:37:28 -05:00
Scott Shawcroft
83593a1558
Start of USB host API
...
This allows you to list and explore connected USB devices. It
only stubs out the methods to communicate to endpoints. That will
come in a follow up once TinyUSB has it. (It's in progress.)
Related to #5986
2022-03-07 18:07:25 -08:00
Michael Himing
78d7bce02a
seeeduino_xiao_kb: Copy pins from seeeduino_xiao
2022-03-08 08:58:32 +11:00
Michael Himing
236ebba0ca
melopero_shake_rp2040: Add missing BOARD_DICT_STANDARD_ITEMS
2022-03-08 08:58:32 +11:00
Jeff Epler
b439464627
Merge pull request #6107 from prplz/add-missing-board-items
...
Add missing BOARD_DICT_STANDARD_ITEMS to two boards
2022-03-07 15:36:17 -06:00
Scott Shawcroft
ff865b60da
Merge pull request #5298 from pewpew-game/logo-remove
...
Add a flag for removing the Blinka logo from the REPL
2022-03-07 12:53:56 -08:00
Dan Halbert
96aec37ead
fix whitespace
2022-03-07 09:11:29 -05:00
Dan Halbert
e91c2e13fb
Seediuno XIAO SAMD21: inverted pins
2022-03-07 09:03:32 -05:00
Rick Sorensen
be3129a917
Update ports/atmel-samd/boards/seeeduino_xiao/pins.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-06 22:59:54 -06:00
Rick Sorensen
6fd0643b1e
Remove trailing white space
2022-03-06 21:15:37 -06:00
Rick Sorensen
d7ef8f18df
pins.c: added comment of reverse wiring for XIAO LEDs
2022-03-06 20:07:42 -06:00
Rick Sorensen
36a27806d8
pins.c: Modify and correct LED pin mappings and names for Xiao
...
Added YELLOW_LED=LED=D13,
BLUE1_LED=RX_LED,
BLUE2_LED=TX_LED
2022-03-06 19:20:37 -06:00
Radomir Dopieralski
b69a06b2ed
Also fix the read pin in the atmel and rp2040 ports
2022-03-06 11:33:07 +01:00
Radomir Dopieralski
b5ad78715c
Update ports/espressif/common-hal/paralleldisplay/ParallelBus.h
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-05 21:48:00 +01:00
Radomir Dopieralski
f477848ac1
paralleldisplay: reset and read pins should be optional
...
The ``reset`` and ``read`` pins should be optional, but the espressif
code had several places where it assumed they are not, and a bug that
caused a crash on ``release_displays`` if they were made optional.
The bug was caused by the fields for storing pin numbers being set
to ``NO_PIN``, which has value of -1, while the fields have type
``uint8_t``. That set the actual value to 255, and a subsequent
comparison to ``NO_PIN`` returned false.
2022-03-05 18:54:12 +01:00
Radomir Dopieralski
93ea1bd9bd
Add a flag for removing the Blinka logo from the REPL
...
There may be several reasons why we might want to remove the logo form
the REPL: a fork of CircuitPython that doesn't have the right to use the
logo, an especially small display that needs all the room it has to be
useful, displays that are especially vulnerable to burn-in, maybe even
the smaller chips where we want to save as much flash memory as
possible.
2022-03-05 15:38:59 +01:00
Michael Himing
c2434782c4
Seeed_XIAO_nRF52840_Sense: remove redundant MICROPY_HW_LED_STATUS
2022-03-03 10:18:58 +11:00
Michael Himing
661140ebcc
Add missing BOARD_DICT_STANDARD_ITEMS to two boards
2022-03-03 09:03:34 +11:00
Michael Himing
9ad50dfefb
Seeed_XIAO_nRF52840_Sense: Enable rgb status LED
2022-03-02 22:34:01 +11:00
Dan Halbert
90c5fb2515
Update ports/espressif/boards/adafruit_feather_esp32s2/pins.c
2022-03-01 19:56:23 -05:00
lady ada
ee52795540
fix automatic i2c enablement with rev C
2022-03-01 18:15:37 -05:00
Scott Shawcroft
b1161f5c4c
Merge pull request #6095 from sgauche/add_stm32f412cx_micro
...
Add STM32F412Cx Microcontroller to CircuitPython
2022-03-01 11:31:18 -08:00
Dan Halbert
a240fed0ce
Merge pull request #6097 from FoamyGuy/update_nina
...
update nina-fw submodule
2022-02-28 21:31:47 -05:00
James Bowman
353ea6f70e
Add EVE support to Feather M4 CAN
2022-02-27 18:34:30 -08:00
foamyguy
2f57800ffd
update nina-fw submodule
2022-02-27 16:15:57 -06:00
Scott Gauche
46129e327d
add stm32f412cx micro to cpy
2022-02-26 16:53:30 -05:00
lady ada
a9d87e6e8b
fix missing pins, speed up
2022-02-25 20:30:35 -05:00
Dan Halbert
01d880829a
Merge pull request #6041 from t-ikegami/enable_uasyncio
...
Enable _uasyncio module
2022-02-25 13:42:29 -05:00
Dan Halbert
61425864f0
turn off onewireio in matriportal_m4
2022-02-25 12:22:45 -05:00
Scott Shawcroft
9e16487203
Merge pull request #6048 from t-ikegami/atmel-samd-fix-alarm
...
Fix atmel-samd alarm module
2022-02-23 15:29:54 -08:00
Scott Shawcroft
f32b5880c8
Merge pull request #6074 from ZodiusInfuser/badger
...
Added definition for an upcoming Pimoroni EInk board
2022-02-23 15:04:23 -08:00
Scott Shawcroft
40b430eea8
Merge pull request #6067 from sgauche/spi_polarity_pullupdown
...
Set SPI CLK pin pull up/down in SPI Configure based on SPI polarity config
2022-02-22 11:51:45 -08:00
Scott Shawcroft
e2f56e9031
Merge pull request #6065 from prplz/ai-thinker-esp32c3s-changes
...
ai_thinker_esp32-c3s: Pull LEDs down on reset
2022-02-22 10:53:50 -08:00
Scott Shawcroft
85b53eab0a
Merge pull request #5963 from arturo182/esp32-s3-devkitm-1
...
espressif: Add ESP32-S3-DevKitM-1 board support
2022-02-22 10:48:07 -08:00
gamblor21
ce4a0806b3
Added test coverage
2022-02-21 10:24:13 -06:00
ZodiusInfuser
d66cf1d8ef
Name fix
2022-02-21 11:26:43 +00:00
ZodiusInfuser
d0bbaddcb3
Board definitions for upcoming EInk board
2022-02-21 11:23:55 +00:00
Tsutomu IKEGAMI
6499d18bb8
Remove board_deep_sleep_hook, which should be done in board_deinit.
2022-02-21 19:21:42 +09:00
gamblor21
edee8e3409
disable on some boards
2022-02-21 00:47:05 -06:00
gamblor21
6f537e50c3
Disable in M0 builds
2022-02-20 16:03:25 -06:00
Scott Gauche
6827586d33
add setting SPI CLK pin pull up/down based on SPI polarity config
2022-02-19 08:46:02 -05:00
Michael Himing
dbedb1575e
ai_thinker_esp32-c3s: Pull LEDs down on reset
2022-02-19 14:30:51 +11:00
Scott Shawcroft
918145f768
Merge pull request #6038 from jepler/merge-1.18
...
Merge 1.18
2022-02-18 17:57:18 -08:00
arturo182
e57e4bd667
esp32s3: Rename to devkitm_1 to devkitm_1_n8 to make more future-proof
2022-02-18 21:32:36 +01:00
Dan Halbert
57bbe7922d
Merge pull request #6058 from Neradoc/add-hiibot-iots2
...
Add hiibot iots2
2022-02-18 12:18:25 -05:00
Jeff Epler
f45a6d762f
Merge remote-tracking branch 'origin/main' into merge-1.18
2022-02-18 08:12:05 -06:00
Dan Halbert
1c3e03d1b1
Merge pull request #6057 from tannewt/board_pin_reset
...
Allow ESP boards to customize how a pin is reset
2022-02-17 21:12:11 -05:00
Dan Halbert
60ceb6e367
Merge pull request #6043 from makermelissa/main
...
Add PortalBase and Fake Requests and update Frozen Libs on Portal boards
2022-02-17 20:19:33 -05:00
Scott Shawcroft
5a51aa2a75
Merge pull request #6056 from Neradoc/qtpys2-debug-uart
...
free RX and TX on QTPY-ESP32S2 in non debug builds
2022-02-17 17:02:46 -08:00
Scott Shawcroft
c4fb5f7df1
Allow ESP boards to customize how a pin is reset
...
This allows board code to override the default pull up reset state.
It is useful for pins that are already externally connected, pulled
or otherwise used by the board.
Fixes #5931
2022-02-17 16:32:29 -08:00
Neradoc
3acb0d48bc
free RX and TX on QTPY-ESP32S2 in non debug builds
2022-02-18 01:13:37 +01:00
Dan Halbert
fe6e03f504
Merge pull request #6013 from tannewt/esp_ble_gatt_client
...
Add S3 GATT client support
2022-02-17 16:02:11 -05:00
Neradoc
aedae120c7
use espressif assigned PID for Hiibot IOTS2
2022-02-17 15:06:38 +01:00
Tsutomu IKEGAMI
bd9dd3dc63
Fix atmel-samd alarm module.
2022-02-17 23:00:26 +09:00
Neradoc
139c2710aa
rebase, fix call to common_hal_busio_spi_construct
2022-02-17 14:41:47 +01:00
Neradoc
b1a55e3904
add board.DISPLAY and init to hiibot itos2 (copying from TTGO)
2022-02-17 14:41:47 +01:00
Neradoc
f9f711ab96
now it compiles, so there is that
2022-02-17 14:41:47 +01:00
Neradoc
727dd41a8c
add hiibot itos2, original commit before checking
2022-02-17 14:41:47 +01:00
Scott Shawcroft
ab037bd216
Merge pull request #6046 from prplz/espressif-enter-repl-delayed-fix
...
Fix press any key responding slowly on espressif
2022-02-16 21:58:29 -08:00