Commit Graph

349 Commits

Author SHA1 Message Date
Neradoc 17bba7b17d remove Adafruit_CircuitPython_BusDevice from frozen modules, it's built in now 2022-04-19 06:49:11 +02:00
Dan Halbert c3cfbc1259 Force pin 21 high; patch; need to diagnose further 2022-04-09 22:03:16 -04: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
Dominic Davis-Foster f297e872d6
Account for divisor when overriding position. 2022-04-06 18:13:59 +01:00
Dan Halbert 99dc4029dc Espressif: disable pull-up on AnalogIn creation 2022-04-06 11:33:56 -04:00
root b993313ac1 Don't reset GPIO4 (used for voltage monitoring) 2022-04-05 11:30:12 -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 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
Dominic Davis-Foster 6d025a239e
Add espressif rotaryio divisor support. 2022-03-28 09:04:02 +01: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
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 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
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
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
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
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
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
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 96dd11a198
Update ESP-IDF to fix PinAlarm
Fixes #5973
2022-03-11 14:40:49 -08: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
Scott Shawcroft c9ec5c89b6
Fix ESP32-S3 box display color order 2022-03-10 15:50:07 -08: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
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
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
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
Michael Himing bc1dade304 Espressif: Fix i2c pullup detection 2022-03-08 16:39:24 +11: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
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
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
foamyguy 2f57800ffd update nina-fw submodule 2022-02-27 16:15:57 -06:00
lady ada a9d87e6e8b fix missing pins, speed up 2022-02-25 20:30:35 -05: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
Michael Himing dbedb1575e ai_thinker_esp32-c3s: Pull LEDs down on reset 2022-02-19 14:30:51 +11: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
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
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
Michael Himing bfb897a0b8 Fix press any key responding slowly on espressif 2022-02-17 12:57:27 +11:00
Kattni Rembor c9213481b3 Update pin name to match TFT pins. 2022-02-16 16:32:08 -05:00
Melissa LeBlanc-Williams 726bf02ea8 Add PortalBase and Fake Requests and update Frozen Libs on Portal boards 2022-02-16 10:12:54 -08:00
Scott Shawcroft 11647f56e4
Merge pull request #6034 from tannewt/i2c_power
Tweak I2C and TFT power pin defaults
2022-02-15 18:00:34 -08:00
Scott Shawcroft 65af10cd23
Tweak I2C and TFT power pin defaults
This should set the power to on by default without preventing the
user code from repeatedly using it.

Fixes #5903
2022-02-14 16:19:56 -08:00
Michael Himing 11bbe48ede Espressif: add partitions-4MB-no-uf2 2022-02-15 08:42:15 +11:00
Michael Himing ca5095c94b Add AI thinker esp32c3s 2M 2022-02-15 07:00:38 +11:00
Scott Shawcroft d4c2ffea27
Merge pull request #6022 from anecdata/more_ap_connections
wifi.radio.start_ap() new kwarg: max_connections
2022-02-14 10:08:39 -08:00
anecdata 5742a12497 input validation consistent with esp-idf is moved to common-hal 2022-02-13 22:14:45 -06:00
anecdata b559a0ee2a new kwarg: wifi.radio.start_ap(max_connections=) 2022-02-12 13:34:57 -06:00
anecdata e4837a4a61 ESP32-S3 increase max sockets - issue #5915 (partial) 2022-02-11 16:00:45 -06:00
Scott Shawcroft 8958e7ef08
Add S3 GATT client support
This allows you to connect to GATT services on the other device.
It also adds connection initiation (GAP central).

More progress on #5926
2022-02-10 11:31:57 -08:00
Scott Shawcroft c9b494b79f
Merge pull request #6006 from DavePutz/issue_5980
Correct ping timeout for espressif
2022-02-10 10:18:14 -08:00
root 6563f71545 Correct ping timeout for espressif 2022-02-09 15:58:25 -06:00
Scott Shawcroft 2bf5a1ee45
Merge pull request #5998 from anecdata/ESP32-S2-DevKitC-1-N4R2
Espressif ESP32-S2 DevKitC-1-N4R2 board
2022-02-09 11:03:14 -08:00
Dan Halbert da035fe958
Merge pull request #5990 from sgauche/stm_spi_3wire
Add support for half-duplex SPI to CPy
2022-02-09 13:11:37 -05:00
anecdata f87c027e00 Espressif ESP32-S2 DevKitC-1-N4R2 board 2022-02-08 22:14:01 -06:00
Scott Gauche a8d8651873 Canonical C style for half_duplex = true/false 2022-02-08 23:13:22 -05:00
Scott Gauche 309f4fb2b9 add half_duplex false param to spi construct function call in some board files 2022-02-08 22:59:26 -05:00
Scott Gauche 89ad767b8f add half_duplex to spi constructs in other ports but raise not implemented errors 2022-02-08 22:25:23 -05:00
anecdata 8e625728d6 LED_INVERTED 2022-02-08 20:34:37 -06:00
Michael Himing a639004c89 unexpectedmaker_tinys3: Fix D43, D44 2022-02-08 16:13:56 +11:00
Michael Himing 15914edd56 unexpectedmaker_feathers3: Fix A12 2022-02-08 16:13:56 +11:00
Michael Himing a2fd1e6eb3 unexpectedmaker_pros3: Fix D43, D44 2022-02-08 16:13:56 +11:00
arturo182 6623fe0a53
esp32s3_devkitm: Add GPIO40 2022-02-03 04:06:08 +01:00
Bryan Walsh 2f1c42b15f added GPIO40 pin to esp32s3 devkit boards 2022-02-02 20:16:39 -05:00
Dan Halbert a04cd6444b
Merge pull request #5966 from Neradoc/add-alias-stemma-i2c
Add alias board.STEMMA_I2C for all boards with qwiic/stemma/QT
2022-02-02 11:08:13 -05:00
Dan Halbert 384cbdcda1
Merge pull request #5962 from Neradoc/add-more-stemma-i2c
Add board.STEMMA_I2C on ESP QTPYs
2022-02-02 10:50:19 -05:00
Neradoc b2c8fd3938 add board.STEMMA_I2C alias to some boards 2022-02-02 01:18:46 +01:00