Closed vlasovskikh closed 7 years ago
Uploading could be done via the adafruit-ampy
package. Although I've experienced some issues using it with WEMOS D1 mini, see #3. At least MicroPython's pyboard.py
shipped as a submodule of ampy
could be helpful as the core library for uploading files via REPL.
I would prefer:
Check out my draft script for uploading a directory to a MicroPython device 8be5cea8c08a9db6af839748a69c97f25952df22. Try it from the command line (requirements: adafruit-ampy
, docopt
). Does it work for you?
It works with my mini Pro well enough.
Some thoughts:
@lensvol I will add the ability to upload a single file. I don't have any solution in mind for uploading files while the REPL session is active. If you have any ideas, please share them :) Let's start with the hard-coded timeout and make it configurable in some way later on, as it doesn't look like the highest priority issue.
@vlasovskikh The only solution I can think of right now:
I am not that familiar with plugin development and IDEA internals, so I don't know if it's real or not. :)
Ok, currently I'm doing it via the Run configuration "Flash ... to device". It supports flashing files and folders to WEMOS D1 mini. I'm going to generalise it. Feel free to open new tickets to discuss flashing options / implementation details.
Which one would you prefer?
Any preferences here?