microemu
: Seamlessly run MicroPython code using Python 3
#16548
vshymanskyy
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Interesting! In which cases would you prefer to use this over running "micropython examples/simple/main.py" (using the Unix port)? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Wrt to step- debugging i have used the .py versions of the MicroPython stubs to allow importing the MCU only modules which are not available in CPython nor in MicroPython-Unix. The stubs are not full shims by definition, but I've found it simple to add a return value in where needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While developing
MicroPython
modules, I found it really convenient to be able to run the same code inPython 3
(for debugging and testing purposes). However, MicroPython environment and builtin modules differ (slightly) from that of the "big" Python.Previously, I was adding some bits of shim code directly into my scripts. Recently I came up with
microemu
and decided to publish it.Here’s how microemu can be used to run the default example from aiodns, which performs DNS resolution asynchronously:
💡 Comments and ideas are welcome!
P.S: am I reinventing the wheel?
Beta Was this translation helpful? Give feedback.
All reactions