Commit Graph

226 Commits

Author SHA1 Message Date
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
Scott Shawcroft e8e5ea7c2f
Merge pull request #5674 from jepler/esp32s3-box-display
esp32s3-box: enable display
2021-12-06 14:06:02 -08:00
Jeff Epler 40d947cee3
Merge pull request #5655 from jepler/esp32s3-devkitc
Espressif: Add Esp32s3 devkitc board definitions
2021-12-06 12:47:04 -06:00
Jeff Epler 1b5e98e2fa
esp32s3 box: add display 2021-12-06 10:08:44 -06:00
Jeff Epler b722a2bca1
espressif: pwmout: get rid of not_first_reset special case 2021-12-06 10:08:44 -06:00
Jeff Epler fae6d47a45
espressif: keep never_reset_pins marked as in use 2021-12-06 10:08:44 -06:00
Dan Halbert c43e0bd2db uncrustify fixes 2021-12-06 09:54:15 -05:00
MicroDev 7df172ba19
Merge pull request #5660 from jepler/esp32s3-spi
espressif: busio.SPI: Use SPI_DMA_CH_AUTO
2021-12-06 10:24:51 +05:30
Jeff Epler 2ad877a907
Fix VID/PID of esp32-box 2021-12-04 14:58:48 -06:00
Jeff Epler e2abb0e059
devkitc: update vid/pid in anticipation of allocation from espressif 2021-12-04 10:19:19 -06:00
Jeff Epler bc7f024545 espressif: Add esp32s3_box
This module has 16MB flash, 8MB PSRAM, as well as a display & speakers.
2021-12-04 09:14:57 -06:00
Jeff Epler 1207bfced9 espressif: Use detected size of spiram 2021-12-04 09:14:22 -06:00
Jeff Epler 1a99ce5eb3 espressif: busio.SPI: Use SPI_DMA_CH_AUTO
All 3 micros we care about (S2, S3, C3) state in the documentation
that DMA channel can be specified as SPI_DMA_CH_AUTO.

Specifying a specific DMA channel explicitly doesn't _ever_ work on
ESP32-S3, so no SPI bus could be used.

Testing performed: On the ESP32-S3-DevKitC, used neopixel_spi to
turn the onboard neopixel red, green, and blue
2021-12-04 09:12:38 -06:00
Jeff Epler 23e0a25aa2 add nopsram version of the devkit C 2021-12-03 15:20:11 -06:00
Jeff Epler 659babc620 Add the esp32s3 devkitc (psram variant) 2021-12-03 15:09:59 -06:00
Dan Halbert f594ab2e67
Merge pull request #5615 from microDev1/espressif
Update espressif port
2021-12-03 14:55:05 -05:00
microDev 9e286432d2
add esp32s3 documentation in readme 2021-12-03 21:20:55 +05:30
Dan Halbert 57c33059f3 board_deinit() everywhere 2021-11-30 11:00:10 -05:00
Kattni Rembor c13f1d19f5 Update pins to silk pin first. 2021-11-29 17:56:03 -05:00
lady ada 83de740d1f kan prezz 2021-11-26 15:13:58 -05:00
lady ada c56e33e6c2 woops fix SPI for rev A (will change in rev B to be correct) 2021-11-26 15:06:09 -05:00
lady ada 3c007ba094 re-add psram! 2021-11-26 13:50:12 -05:00
microDev dddc282e34
update default sdkconfig and correct bootloader offset 2021-11-26 22:44:22 +05:30
microDev 554a62955b
Merge branch 'main' into espressif 2021-11-26 22:40:22 +05:30