intellij-micropython
intellij-micropython copied to clipboard
Support for CircuitPython / EdgeBadge
I would like support for Adafruit EdgeBadge. Things are very, very close. There are two main issues:
- CircuitPython (at least on the Edge) comes up with a read-only filesystem. This is easy to fix:
import storage
storage.remount('/', readonly=False)
- You can't write the filesystem while the usb mass storage device is mount, which, at least on Windows, happens by default. If you try, you get an error "RuntimeError: Cannot remount '/' when USB is active." I don't see a way to automate this, and I'm wondering if other boards have the same problem. If you simply unmount it (in windows lingo "eject") then it works fine, provided you have done the remount in step 1.
I think a solution here would ideally include an intelligent error message that reminds the user "Unmount the mass storage device then try again." Or, alternatively, just have a mode that deploys by copying to a destination path (i.e. if the mass storage device is there, just write to it).
I'm new to this project so I'm not quite sure how to proceed. I don't yet feel familiar enough to submit a PR. Advice?