MicrPython on Windows

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
TomLin
Posts: 4
Joined: Thu Apr 22, 2021 8:47 am

MicrPython on Windows

Post by TomLin » Thu May 06, 2021 7:17 pm

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.

stijn
Posts: 646
Joined: Thu Apr 24, 2014 9:13 am

Re: MicrPython on Windows

Post by stijn » Thu May 06, 2021 7:33 pm

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.

TomLin
Posts: 4
Joined: Thu Apr 22, 2021 8:47 am

Re: MicrPython on Windows

Post by TomLin » Fri May 07, 2021 11:03 am

Hi stijn, looks promising although currently maybe too much heavy lifting needed, considering my experience. Looking forward to a more readily installable edition.

stijn
Posts: 646
Joined: Thu Apr 24, 2014 9:13 am

Re: MicrPython on Windows

Post by stijn » Fri May 07, 2021 12:22 pm

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

User avatar
mattyt
Posts: 356
Joined: Mon Jan 23, 2017 6:39 am

Re: MicrPython on Windows

Post by mattyt » Fri May 07, 2021 1:18 pm

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.

Post Reply