Enabling time Module in Embedded MicroPython #15876
Unanswered
zdravko1989
asked this question in
Other
Replies: 2 comments 7 replies
-
Start with checking if the time code is effectively included in the build by introducing an error (just |
Beta Was this translation helpful? Give feedback.
4 replies
-
See #11430 for how I enabled the time module and others. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am currently experimenting with the embedding example (see the examples/embedding directory). I'm trying to enable the time module, but I'm encountering some issues.
To enable the module, I modified the mpconfigport.h file with the following snippet:
However, when I try to import the time module in my script, I receive the following error:
It seems that the time module is not being included in the build as expected.
Please note: the process in which I want to embed the MicroPython runtime will run on a Unix system.
Is there a specific step I’m missing in the configuration or build process to enable the time module in this setup? Any advice or guidance would be greatly appreciated!
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions