-
• #2
Ah, https://www.npmjs.com/package/usb:
Windows Use Zadig to install the WinUSB driver for your USB device.
Otherwise you will get LIBUSB_ERROR_NOT_SUPPORTED when attempting to
open devices.(which I found when trying to figure out why espruino --list finds no ports in Ubuntu either)
-
• #3
espruino --list
finds no ports in Ubuntu eitherIn that case you need the
setcap
command to give it permissions.Odd about the COM ports on Windows though - maybe try
espruino.cmd --list --verbose
and see if it gives you any hints about why theserialport
library isn't working?
I am trying to get VS Code working with Espruino via https://www.espruino.com/Typescript+and+Visual+Studio+Code+IDE
But I've been running into a bit of a hiccup, where it doesn't want to open the COM port (COM7 in this case). Different apps can all open the COM port, individually of course, not all at once!
This is what VS Code is saying after a Ctrl+Shift+B => 'build', then a Ctrl+Shift+B => 'espruino-console':
Possibly related, it appears that espruino-cli maybe isn't seeing COM ports?
I'll look at this more tomorrow, but my brain is about toast for the evening.
Thanks!
-Seganku