Skip to content

Commit

Permalink
Add detection for boards using CP210x/CH340 bridge.
Browse files Browse the repository at this point in the history
This means many ESP32/ESP8266-based dev. boards are now automatically
recognized.
  • Loading branch information
jose1711 committed Aug 25, 2022
1 parent b87878c commit fda2607
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ def is_micropython_usb_device(port):
# Check for LEGO Technic Large Hub
if usb_id.startswith('usb vid:pid=0694:0010'):
return True
# Check for CH340x-based devices (ESP8266 boards)
if usb_id.startswith('usb vid:pid=1a86:7523'):
return True
# Check for CP210x-based devices (ESP32 boards)
if usb_id.startswith('usb vid:pid=10c4:ea60'):
return True
return False


Expand Down

0 comments on commit fda2607

Please sign in to comment.