Re: ESP32-S2 USB-CDC Flashing (Arduino)
Posted: Sat Feb 27, 2021 5:47 pm
I am trying to use your library, however I am not be able to succeed in working with that due to the conflict with core libraries of ESP32 Arduino. As the other included libraries integrated within each other, I am gonna try deeply to solve the issues. Or else, if you have any recommendation as a simple solution, I can try that one?I fixed one more thing in my library and now you can also use it as a standard Serial libraryCode: Select all
#define NO_GLOBAL_SERIAL // this will prevent to create instance of HardwareSerial Serial #include "cdcusb.h" CDCusb Serial; void setup() { Serial.begin(); while(!Serial); // wait until USB cable is connected and stack is ready Serial.println("Serial is ready"); } void loop() { delay(1000); Serial.println(millis()); }