How do I address the USB port of my Wemos lolin32 lite in micropython?

eefscheef
Posts: 2
Joined: Mon Jan 29, 2018 3:03 pm

How do I address the USB port of my Wemos lolin32 lite in micropython?

Postby eefscheef » Mon Jan 29, 2018 9:35 pm

Title says it all, is it possible to read data from the microUSB port on my board and get the power from another source? Mycropython is not essential, but would make things easier. Sorry if this is a stupid question, but I can't find anything about it on the internets

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: How do I address the USB port of my Wemos lolin32 lite in micropython?

Postby ESP_Sprite » Tue Jan 30, 2018 2:50 am

The USB port on your board is most likely connected to an USB-serial converter, which in turn is connected to the serial port of the ESP32. If what you're trying to connect the micro-USB-port to is okay with acting as a host and talking to an USB-to-serial converter, you can use the standard serial communication functions of whatever language you use. If not... well... unfortunately there's not much you can do without modifying the hardware.

eefscheef
Posts: 2
Joined: Mon Jan 29, 2018 3:03 pm

Re: How do I address the USB port of my Wemos lolin32 lite in micropython?

Postby eefscheef » Tue Jan 30, 2018 6:36 am

That was exactly what I wanted to do, thank you very much.

Who is online

Users browsing this forum: Baidu [Spider] and 77 guests