How to import my driver(e.g private ".py" file)
Posted: Thu Apr 30, 2020 1:54 am
Hi
With python(PC ver.), we can split something(e.g. function, diver, or data) in a separate file. And import it when using it.
Shell we do that in micropython?
However, the system(not sure in IDE or board) seem to accept ONE file(main.py or main.hex) only.
If not possible, the script file(main.py) will be very big and difficult to read.
I saw some 3rd party provide their library in ".hex". This style like a ".dll" in PC system. Do we have another way to except this method?
Please share your experience/ comment.
Thanks
With python(PC ver.), we can split something(e.g. function, diver, or data) in a separate file. And import it when using it.
Shell we do that in micropython?
However, the system(not sure in IDE or board) seem to accept ONE file(main.py or main.hex) only.
If not possible, the script file(main.py) will be very big and difficult to read.
I saw some 3rd party provide their library in ".hex". This style like a ".dll" in PC system. Do we have another way to except this method?
Please share your experience/ comment.
Thanks