Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module variables #4

Open
IhorNehrutsa opened this issue Oct 14, 2020 · 0 comments
Open

Module variables #4

IhorNehrutsa opened this issue Oct 14, 2020 · 0 comments

Comments

@IhorNehrutsa
Copy link

First, I want to express my gratitude to the author.
Your explanations are clear and their style very benevolent.

And questions:
Are module variables possible, like module constants?
Module constants https://micropython-usermod.readthedocs.io/en/latest/usermods_06.html

In C code module variables can be declared like

// mymodule
const int some_var;

and then in MicroPython

mymodule.some_var = value
print(mymodule.some_var)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant