improve support for -S2

got myself an adafruit "qt py -S2" with tinyUF2 bootloader. So I wanted to get that working. And it does work :-).
FFT time = 10ms (instead of 2ms on classic ESP32)  is a very good result, also virtual USB runs much better now.
This commit is contained in:
Frank
2022-12-22 23:22:58 +01:00
parent f9b9716fdd
commit e6bd66d35d
5 changed files with 81 additions and 9 deletions

View File

@@ -282,8 +282,13 @@ void WLED::setup()
#if ARDUINO_USB_CDC_ON_BOOT
delay(2500); // WLEDMM: always allow CDC USB serial to initialise
Serial.println("wait 1"); // waiting a bit longer ensures that a debug messages are shown in serial monitor
delay(2500);
Serial.println("wait 2");
delay(2500);
Serial.flush();
//Serial.setTimeout(350); // WLEDMM: don't change timeout, as it causes crashes later
Serial.setTimeout(350); // WLEDMM: don't change timeout, as it causes crashes later
// WLEDMM: redirect debug output to HWCDC
Serial0.setDebugOutput(false);
Serial.setDebugOutput(true);