arduino-esp32/libraries/ESP32
Rodrigo Garcia 2fdd901639
fixes default 100ms delay with HWCDC write() is CDC is not connected (#9307)
* feat(hwcdc): fix delay

Fixes delay when CDC is disconnected. At this time is only fixes it when USB cable is unplugged.

* feat(hwcdc): fix delay

fixes delay when CDC is not connected. It was only considering when the USB cable was not plugged.

* feat(hwcdc): add 2 methods

Adds 2 new methods:
- isPlugged() will return true when USB cable is plugged, false otherwise.
- isConnected() will return true when USB CDC is connected to a application in the USB Host side and communication is stablished.

* feat(hwcdc): adjusts APIs

Fixes the example to use the new added APIs for checking if USB cable is plugged and for checking if CDC is connected.

* fixes api declaration

* fixes API declaration
2024-02-29 08:40:28 +02:00
..
examples fixes default 100ms delay with HWCDC write() is CDC is not connected (#9307) 2024-02-29 08:40:28 +02:00
src Add ESP32 examples folder and sigma-delta example 2017-02-05 16:14:43 +02:00
keywords.txt Added keywords.txt with RGB_BUILTIN into libraries/ESP32 (#7015) 2022-07-20 10:32:22 -03:00
library.properties Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00