diff --git a/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/Metro M4 WiFi ESP32 Passthru.UF2 b/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/Metro M4 WiFi ESP32 Passthru.UF2 deleted file mode 100644 index 2d2f4cef0..000000000 Binary files a/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/Metro M4 WiFi ESP32 Passthru.UF2 and /dev/null differ diff --git a/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/PyBadge M4 with AirLift Wing Passthru.UF2 b/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/PyBadge M4 with AirLift Wing Passthru.UF2 deleted file mode 100644 index 090a1b4ca..000000000 Binary files a/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/PyBadge M4 with AirLift Wing Passthru.UF2 and /dev/null differ diff --git a/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/PyPortal ESP32 Passthru.UF2 b/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/PyPortal ESP32 Passthru.UF2 deleted file mode 100644 index fa6abda6d..000000000 Binary files a/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/PyPortal ESP32 Passthru.UF2 and /dev/null differ diff --git a/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/SerialESPPassthrough.ino b/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/SerialESPPassthrough.ino index a8e9d91bb..35bb4b5f5 100644 --- a/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/SerialESPPassthrough.ino +++ b/Adafruit_ESP32_Arduino_Demos/SerialESPPassthrough/SerialESPPassthrough.ino @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2018 Arduino SA +// SPDX-FileCopyrightText: 2018 Arduino SA // // SPDX-License-Identifier: LGPL-2.1-or-later /* @@ -23,6 +23,10 @@ */ #include +// For Adafruit core, Arduino USB impl on SAMD sometimes does not work properly. +// Choose the TinyUSB implementation instead. +// Must compile with Tools->USB Stack->TinyUSB +#include "Adafruit_TinyUSB.h" unsigned long baud = 115200; @@ -100,7 +104,7 @@ void setup() { pinMode(SPIWIFI_SS, OUTPUT); pinMode(ESP32_GPIO0, OUTPUT); pinMode(ESP32_RESETN, OUTPUT); - + // manually put the ESP32 in upload mode digitalWrite(ESP32_GPIO0, LOW);