Skip to content

Add support for ESP32-S2 arduino core version 2.0.0 #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Sep 30, 2021
Merged

Conversation

hathach
Copy link
Member

@hathach hathach commented Sep 29, 2021

  • Add support for ESP32-S2 core version 2.0.0, supercede Add support for TinyUSB Arduino Library espressif/arduino-esp32#5333

    • ESP32 port relies on Espressif's esp32-hal-tinyusb.c for building usb descriptors which requires all descriptors must be specified in usb objects declaration i.e constructors. Therefore all descriptor-related fields must be part of object declaration and descriptor-related API have no effect afterwards for this port.
  • Add new constructor for Adafruit_USBD_HID(desc_report, len, protocol, interval_ms, has_out_endpoint)

Note: Menu option USB CDC on Boot should be Enabled and Upload Mode should be Internal USB (if available).

Screenshot from 2021-09-29 22-05-38

@brentru
Copy link
Member

brentru commented Sep 29, 2021

@hathach This is tested working with WipperSnapper Arduino with both ESP32-S2 and TinyUSB on SAMD51 (I'm staging changes on https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/tree/add-support-esp32-2.0)

@hathach
Copy link
Member Author

hathach commented Sep 30, 2021

thank you @brentru for testing this out. I think this PR is ready, we can merge and release it. Any issues can be fixed later on.

@hathach hathach merged commit 7438327 into master Sep 30, 2021
@hathach hathach deleted the support-esp32-2.0 branch September 30, 2021 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants