Commit Graph

349 Commits

Author SHA1 Message Date
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
Dan Halbert
5435a40c54
Merge pull request #5959 from andypiper/patch-1
Fix typos
2022-02-01 18:27:31 -05:00
arturo182
2a87a80f69 espressif: Add ESP32-S3-DevKitM-1 board support 2022-02-02 00:18:04 +01:00
Neradoc
93f612eea2 add board.STEMMA_I2C on ESP QT PYs 2022-02-01 20:15:24 +01:00
Scott Shawcroft
2964e966b1
Merge pull request #5958 from dhalbert/i2c-common-hal-write-read
I2c common hal write read
2022-02-01 11:08:50 -08:00
Andy Piper
4096bb28ab
Fix typos
Some typo corrections and cleanup to the ESP32 doc
2022-02-01 18:53:11 +00:00
Dan Halbert
cc410ad6a3 common-hal I2C combined write_read 2022-01-31 22:03:30 -05:00
Dan Halbert
17956a0204
Merge pull request #5957 from tannewt/esp_ble_forever_scan
Fix BLE scanning forever on ESP32-S3
2022-01-31 20:55:48 -05:00
Dan Halbert
d5740c8ad9 Merge remote-tracking branch 'adafruit/main' into i2c-common-hal-write-read 2022-01-31 18:51:32 -05:00
Scott Shawcroft
db7e72b43d
Fix BLE scanning forever on ESP32-S3 2022-01-31 15:45:43 -08:00
Dan Halbert
83e6e6690a wip; works on espressif 2022-01-29 22:44:27 -05:00
Seon Rozenblum
1277852501 Added initial support for my new TinyS3, FeatherS3 and ProS3 ESP32-S3 development boards 2022-01-29 14:04:57 +11:00
Scott Shawcroft
019aecaa20
Support BLE advertising on ESP
Services and characteristics still won't work.

Progress on #5926
2022-01-27 17:40:37 -08:00
Dan Halbert
fff68c9f86
Merge pull request #5927 from tannewt/esp_ble_scan
Add BLE scanning for S3 and C3.
2022-01-27 13:05:24 -05:00
Scott Shawcroft
d9966c1724
Add TODOs and -Os for RISC-V 2022-01-26 17:07:20 -08:00
Scott Shawcroft
e409ff75cd
Turn off BLE HCI on ESP32-S2 2022-01-26 09:46:29 -08:00
microDev
fa2d156d14
return default cpu frequency on espressif 2022-01-26 12:32:48 +05:30
Scott Shawcroft
b2e1dbd2df
Implement name and address get/set 2022-01-25 19:17:26 -08:00
Scott Shawcroft
5a6f456dbb
Add BLE scanning for S3 and C3.
Everything else should raise NotImplementedError.

First step in #5926
2022-01-25 16:28:46 -08:00
Scott Shawcroft
4a3c636b6b
Merge pull request #5874 from dkulinski/epaper_two_byte_length
Update EPaperDisplay to allow for two byte sequence length
2022-01-25 11:13:36 -08:00
Dan Kulinski
19f9163892 Bringing branch up to date with current main 2022-01-25 11:02:00 -07:00
microDev
324ff9c30d
bump idf to latest commit on v4.4 branch 2022-01-25 18:01:09 +05:30
Dan Kulinski
60801066b2 Fix magtag, openbook for EPaperDisplay constructor 2022-01-24 12:34:01 -07:00
root
367a1d53c0 Fixes for pulsein on ESP32S3 2022-01-23 13:14:34 -06:00
Michael Himing
4d78e3401c Fix esp32s3 devkitc uart naming and add board.UART 2022-01-22 15:25:33 +11:00
microDev
3970aa5a5e
fix build failure on two boards 2022-01-21 10:11:33 +05:30
MicroDev
dab35f7c72
Merge pull request #5880 from jepler/espressif-serial-trick-uf2
Request ROM bootloader when resetting using the 'serial trick'
2022-01-21 09:56:12 +05:30
Jeff Epler
ea30a8ac04
Reboot into the ROM bootloader from 1200 baud
Per Scott, the purpose of this trick is to make the board programmable from Arduino even when CP is installed, so my convenience of escaping into UF2 is not going to work out.
2022-01-20 18:50:50 -06:00
Scott Shawcroft
35175715f9
Check target defined 2022-01-20 14:11:33 -08:00
Scott Shawcroft
d99847b410
Refactor pin reset on ESP
This makes it easier to blanket never reset flash and USB pins. It
also allows us to set a custom state after reset. The first case
is for the double tap reset that needs to be pulled low.

Fixes #5893
2022-01-20 12:40:41 -08:00
Scott Shawcroft
13db65566d
ESP NeoPixel fixes
This tweaks the RMT timing to better match the 1/3 and 2/3 of 800khz
guideline for timing. It also ensures a delay of 300 microseconds
with the line low before reset.

Pin reset is now changed to the IDF default which pulls the pin up
rather than CircuitPython's old behavior of floating the pin.

Fixes #5679
2022-01-19 16:29:07 -08:00
Dan Halbert
8bae6af12a
Merge pull request #5888 from tannewt/esp_tick_core
Ensure supervisor_tick is run on the same core as CP
2022-01-19 19:26:50 -05:00
Kattni Rembor
880d43a4f7 Fix pin typo. 2022-01-19 17:04:30 -05:00
Scott Shawcroft
42fbebe62a
Merge pull request #5832 from ladyada/main
ESP32S2 camera board draft
2022-01-19 12:04:13 -08:00
Scott Shawcroft
78942112c7
Ensure supervisor_tick is run on the same core as CP 2022-01-19 11:36:40 -08:00
lady ada
f13ea93fe6 fix A5 pin name 2022-01-19 14:22:01 -05:00
lady ada
6d7472357d newline 2022-01-18 20:46:09 -05:00
Scott Shawcroft
7ee5c01cf8
Add Espressif C3 dev board 2022-01-18 17:39:52 -08:00
lady ada
09cf95a51c no psram :( 2022-01-18 20:14:17 -05:00
lady ada
de45a20b08 EOF 2022-01-18 20:14:17 -05:00
lady ada
71c792d608 try initial esp32s3 qtpy def 2022-01-18 20:14:17 -05:00
lady ada
d4dab79234 add buttonpin 2022-01-18 20:14:17 -05:00
lady ada
c1cee63c5a fix tuplecompile 2022-01-18 20:14:17 -05:00
lady ada
1d44bf1c0c add camera data port 2022-01-18 20:14:17 -05:00
lady ada
3381ac149e fix camera display io to use default spi bus 2022-01-18 20:14:16 -05:00
lady ada
13b319c430 try rotation 0 2022-01-18 20:14:16 -05:00
lady ada
e9f0c1796e oof fix i2c lines! 2022-01-18 20:14:16 -05:00
lady ada
4400124efe snappysnap 2022-01-18 20:14:16 -05:00
lady ada
8b26f594c9 try not resetting i2c power 2022-01-18 20:14:16 -05:00
lady ada
647b894e7b ?? some include needed 2022-01-18 20:14:16 -05:00
lady ada
9c933558b5 enable I2C by default 2022-01-18 20:14:15 -05:00
Jeff Epler
872beeccfe
Merge remote-tracking branch 'origin/main' into espressif-serial-trick-uf2 2022-01-18 19:07:05 -06:00
Scott Shawcroft
c839d9b3cc
Fix S2 builds by not turning on USB with wifi 2022-01-18 15:50:32 -08:00
Scott Shawcroft
679f4b30ba
Tweak heap sizes for different targets 2022-01-18 15:23:19 -08:00
Jeff Epler
49b8579bcd
Request UF2 bootloader when resetting using the 'serial trick' 2022-01-17 17:14:31 -06:00
Dan Halbert
3453ced296
Merge pull request #5860 from tannewt/s3_core_1
Switch CP to core 1 on S3
2022-01-17 16:10:05 -05:00
Jeff Epler
895a8a9e72
Merge pull request #5866 from dhalbert/espressif-open-drain
fix espressif DigitalInOut open-drain
2022-01-17 12:51:31 -06:00
Dan Halbert
11848b1826 use GPIO_MODE_ instead of GPIO_MODE_DEF 2022-01-15 23:05:33 -05:00
Dan Halbert
c70c8a9390 fix espressif open-drain 2022-01-15 19:54:31 -05:00
Scott Shawcroft
f6cf15de43
Switch CP to core 1 on S3 2022-01-14 12:22:38 -08:00
Scott Shawcroft
993e51e5cc
Fix USB when enabling wifi 2022-01-14 11:52:14 -08:00
Scott Shawcroft
7af7cd418c
Merge pull request #5853 from tannewt/s3_config_rework
Split out target specific configs.
2022-01-14 10:25:50 -08:00
Scott Shawcroft
86e7247d11
Merge pull request #5854 from jepler/issue-5680
patch esp-idf for i2c crash
2022-01-14 09:37:23 -08:00
Jeff Epler
c87d9c947b
patch esp-idf for i2c crash
In theory, this Closes: #5680 -- I didn't test it on HW yet.
2022-01-14 08:53:24 -06:00
Scott Shawcroft
869cf5eba5
Run USB on the same core as CP 2022-01-13 15:55:37 -08:00
Scott Shawcroft
39639ecd17
Rework configs to take target into account
New script will filter settings to different tiers.
2022-01-13 15:55:37 -08:00
Scott Shawcroft
2233026556
Merge pull request #5848 from prplz/esp32s3-devkits
Esp32s3 devkits
2022-01-13 14:02:44 -08:00
Dan Halbert
59275c7225
Merge pull request #5846 from jepler/feather-esp32s2-tft-spi
feather esp32s2 tft: fix sharing of main display bus
2022-01-12 23:05:42 -05:00
Michael Himing
a878e3377c Rename espressif_esp32s3_devkitc_1 to devkitc_1_n8r2 2022-01-13 13:24:06 +11:00
Michael Himing
212eedc42f Rename espressif_esp32s3_devkitc_1_nopsram to devkitc_1_n8 2022-01-13 13:24:06 +11:00
Michael Himing
7575cacdc5 Add espressif_esp32s3_devkitc_1_n8r8 2022-01-13 13:24:06 +11:00
Jeff Epler
10c3836bc0
feather esp32s2 tft: fix sharing of main display bus 2022-01-12 14:35:00 -06:00
Kattni Rembor
fb96c09118 Add button pin to Feathers, fix pin order on QT Py. 2022-01-12 13:54:56 -05:00
Kattni Rembor
4efbfca2b0 Fix typo, pin order. 2022-01-10 14:45:54 -05:00
Dan Halbert
d166834e09
Merge pull request #5803 from dhalbert/countio-enhancements
countio: add selectable rise and fall detection, pulls
2021-12-31 23:45:59 -05:00
Dan Halbert
9d2a32d07e countio: add selectable rise and fall detection, pulls 2021-12-31 16:34:58 -05:00
microDev
4daa7b5180
update espressif port
- enable rgbmatrix for all esp soc
- bump idf to latest commit on v4.4 branch
2021-12-30 19:23:41 +05:30
Dan Halbert
8aafc734a4
Merge pull request #5789 from adafruit/7.1.x
Merge latest changes from 7.1.x
2021-12-28 18:12:29 -05:00
Jeff Epler
1d13c4ccd1
Centralize LONGINT_IMPL handling
This closes #5782
2021-12-27 10:21:47 -06:00
Dan Halbert
cf70a9ca61 Turn on I2C power for each VM, instead of just after hard reset 2021-12-24 16:27:17 -05:00
Dan Halbert
889b25d792 put I2C_POWER_INVERTED alias before D7, for prettypins 2021-12-24 11:49:58 -05:00
Dan Halbert
cf349af35e turn on I2C power after reset 2021-12-24 11:45:07 -05:00
Scott Shawcroft
605753cd7d
Merge pull request #5771 from hathach/s3-familyid
use family id for s2 and s3 depending on IDF_TARGET
2021-12-23 11:08:41 -08:00
Jeff Epler
900ec91fa6
Merge pull request #5761 from adafruit/7.1.x
Bring 7.1.x changes into main - cascadetoml undo + alarm fixes
2021-12-23 06:30:05 -07:00
hathach
53869d71fd
use family id for s2 and s3 depending on IDF_TARGET 2021-12-23 14:53:00 +07:00
Dan Halbert
3bb9a4439d Fix recording of wake_alarm 2021-12-21 21:48:36 -05: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
Jeff Epler
60c2018262
Update protomatter & re-enable rgbmatrix on esp32s2
.. not enabled on s3 & c3 as I did not test there.
2021-12-17 12:04:39 -06:00
lady ada
654414e57e fix colororder 2021-12-17 10:41:06 -05:00
lady ada
26c2acae12 nuudge 2021-12-17 09:47:44 -05:00
lady ada
8e540a1738 fix final qtpys2 and s2tft feather pinouts 2021-12-17 09:47:44 -05:00
lady ada
1c1559f5af fix colororder 2021-12-17 09:41:44 -05:00
lady ada
c088090319 nuudge 2021-12-17 01:17:35 -05:00
lady ada
12e72ef406 fix final qtpys2 and s2tft feather pinouts 2021-12-17 00:24:19 -05:00
Tim Hawes
54e87d3660
Apply suggestions from code review
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-12-14 20:03:44 +00:00
Tim Hawes
c325633f8e Add methods to ssl.SSLContext for handling self-signed certs 2021-12-14 01:00:50 +00:00
Tim Hawes
ef414bf1bd Handle server_hostname argument in espressif SSLContext.wrap_socket 2021-12-14 01:00:50 +00:00
Tim Hawes
a3c8760d41 Fix to error checking in espressif SSLSocket 2021-12-13 17:55:43 +00:00
Dan Halbert
3bdf2a5cde
Merge pull request #5691 from jepler/esp32s3-pids
Fix PIDs to match official espressif list
2021-12-09 09:08:35 -05:00
Jeff Epler
937e0740f4
Fix PIDs to match official espressif list
See the slightly deceptively titled
 * https://github.com/espressif/usb-pids/pull/29
2021-12-08 20:27:34 -06:00
Scott Shawcroft
b12d2063d0
Merge remote-tracking branch 'adafruit/7.1.x' into merge_7.1 2021-12-08 10:50:22 -08:00