USB Host module - which pins?
-
Hi
I have the USB Host module but I'm confused over the circuit and code. It says it connects P35 to the INT line on the MAX3421 but the code in the library (https://github.com/felis/USB_Host_Shield_2.0/blob/master/avrpins.h) has this // Pinout for ESP32 dev moduleMAKE_PIN(P0, 0);
MAKE_PIN(P1, 1); // TX0
MAKE_PIN(P10, 10); // TX1
MAKE_PIN(P3, 3); // RX0
MAKE_PIN(P21, 21); // SDA
MAKE_PIN(P22, 22); // SCL
MAKE_PIN(P19, 19); // MISO
MAKE_PIN(P23, 23); // MOSI
MAKE_PIN(P18, 18); // SCK
MAKE_PIN(P5, 5); // SS
MAKE_PIN(P17, 17); // INTwhich shows 17 as INT.
It seems not to matter, as with a different ESP32 board I have connected 17, 35 and nothing and it still seems to work,
Is there a special library for the M5Stack USB Host that specifically uses P35?
Thanks -
Hi @PaulHamshere ,
Did you try this code?https://docs.m5stack.com/en/module/usb?id=example
It seem we provide a library for this module:
https://github.com/m5stack/M5Stack/blob/22e1d65b1062b185d1692fa19af3cbd238633859/examples/Modules/USB_MAX3421E/USB_Host_Shield_Library_2.0.rar -
Hi - I did try the example and it works. But it works whether any pin is connected to INT - pin 17, pin 35 or no pin at all. INT drives interrupt responses and perhaps this really doesn't use any interrupts - but then why connect P35 at all?
The rar looks to have the same pin assignment as above in avrpins.h - pin 17 to INT.
I am wondering if I've missed something here!