Can I run Python Code from an Arduino C firmware? #10264
hacktronics
started this conversation in
General
Replies: 1 comment 2 replies
-
Yes this is possible -- you can embed MicroPython into any C or C++ codebase. However to get access to hardware functionality you will need to implement the relevant bindings. But if your goal is just to provide a way to run custom scripts with an API you control (in addition to standard Python built-in modules) then this is doable. See https://github.com/micropython/micropython/tree/master/examples/embedding however we are in the process of reworking this, so #9529 is the latest. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some Arduino based C code, I want to add feature to support some python scripts received over WiFi, it is possible.
Is there some embeddable python parser, than can be used?
Or I have to add micro python firmware, and need a way to switch to the python firmware at runtime.
Any ideas are welcome, on how to solve the same.
Beta Was this translation helpful? Give feedback.
All reactions