I've been attempting to read serial data from the USB Type-A female "HOST" port on the ESP32-S3 USB OTG board in the Arduino core, however, the example code on the github repo seems to only use the USB DEV port instead of the USB HOST. I've done some documentation reading and I believe I have configured the correct pins to enable the USB HOST to work (shown below), but I am still unsure how I would go about actually programming the board to read serial data from this port (and if my configuration is even correct).
Code: Select all
void setup() {
pinMode(12, INPUT_PULLUP);
pinMode(13, INPUT_PULLUP);
pinMode(17, INPUT_PULLUP);
pinMode(18, INPUT_PULLUP);
digitalWrite(12, LOW);
digitalWrite(13, LOW);
digitalWrite(17, LOW);
digitalWrite(18, HIGH);
}
Thank you!