bbcmicrobit / micropython

Port of MicroPython for the BBC micro:bit
https://microbit-micropython.readthedocs.io
Other
603 stars 284 forks source link

Feature request - detecting a host computer from a microbit #654

Open rhubarbdog opened 5 years ago

rhubarbdog commented 5 years ago

Is it possible to add a function to detect a host computer connected to usb? I noticed pyboard has this so in theory it may be possible with microbit.

deshipu commented 5 years ago

The microcontroller on the micro:bit is not USB-capable, instead, there is a separate small chip on the board that acts as a USB-to-serial converter and as a programmer for the main microcontroller. We don't have access to the code running on that helper chip, and so we can't add any features that would require modifications to it, and this particular feature is one of those, as far as I can tell.