Page 1 of 1
MicrPython on Windows
Posted: Thu May 06, 2021 7:17 pm
by TomLin
Is there a tool or environment for running MicroPython on Windows?
I have used PythonWin, which is a very nice tool but it only supports Python 2.7.2.
Naturally, running on Windows would not be a real time solution and cannot support IO operations.
However, it would be a convenient debugging tool for the general logic of your Python code being under development.
Re: MicrPython on Windows
Posted: Thu May 06, 2021 7:33 pm
by stijn
https://github.com/micropython/micropyt ... ts/windows
Naturally, running on Windows would not be a real time solution and cannot support IO operations.
That is not necessarily the case. E.g. we use custom modules which are available in MicroPython to control I/O over National Instruments DAQs for instance.
Re: MicrPython on Windows
Posted: Fri May 07, 2021 11:03 am
by TomLin
Hi stijn, looks promising although currently maybe too much heavy lifting needed, considering my experience. Looking forward to a more readily installable edition.
Re: MicrPython on Windows
Posted: Fri May 07, 2021 12:22 pm
by stijn
You mean you don't want to build yourself but use an executable? That's not yet possible (unless someone provides these builds from their own fork already). There's a PR for it though
https://github.com/micropython/micropython/pull/6049
Re: MicrPython on Windows
Posted: Fri May 07, 2021 1:18 pm
by mattyt
What about a solution that used Docker? Would that be useful?
It would be much like the python docker instances:
Code: Select all
C:\Work>docker run -ti python:3.8
Python 3.8.10 (default, May 4 2021, 18:50:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
But, naturally, you'd need to grab the MicroPython container:
Code: Select all
C:\Work>docker run -ti micropython:1.14
MicroPython v1.14-170-78b23c3 on 2021-02-04; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>>
...and, now that I go looking, I find that this
already exists! Thanks to
Mitchell Currie who has published the MicroPython unix builds as docker containers. Just use mitchins/micropython-linux from docker hub:
Code: Select all
C:\Users\mst>docker run -ti mitchins/micropython-linux:v1.14
MicroPython v1.14 on 2021-02-03; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>>
You can see how the containers are built by checking out
mitchins/docker-micropython-linux.