understood... I'll see what Olimex says in a couple weeks after they return from their annual vacation that started today.
Thank you JumJum!
I believe there aren't any examples because the USB Host mode only became available with the Pro version of the ESP32 hardware. The hardware link above would define the hardware pin assignments to the USB provided by a PIC32MX270F256DT. Olimex's blog mentions it briefly https://olimex.wordpress.com/2017/06/21/esp32-pro-new-iot-board-with-4mb-external-ram-4mb-external-flash-external-crypto-engine-lipo-charger/.
I currently use the E_setUSBHID and E_sendUSBHID with the USBKeyboard, USBMouse and USBTablet modules for the Pico and Wifi. The problem is that they are not available in a build that does not define USE_USB_HID which requires further hardware definition.
After further research, I see that I need to copy the ESP32 board definition file to create an ESP32PRO.json file and add the USB specific info, pin assignments, etc. I also looked that the Olimex hardware info pages at https://github.com/OLIMEX/ESP32-PRO. The steps needed are a bit beyond my knowledge base. Will there be enough interest for someone to go through the build process?
Since the ESP32-Pro includes the USB host mode, will Espruino detect it and allow it to be accessed natively? I would experiment and try it but it is a new unit and don't want to overwrite the firmware it is will not work. Thanks!!
© Espruino, powered by microcosm.
Report a problem