How import my own library

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
giants
Posts: 23
Joined: Fri Apr 26, 2019 2:07 pm

How import my own library

Post by giants » Sat Feb 29, 2020 6:29 pm

Hi there!
Im gonna to write my program for control the level of my tank. So i have my princial program and i wrote one class for the display and i wrote one file of my fonts. All this files are in the same folder. So my problem is when try to import the class (and the same is for the fonts) the program gave me this error

ImportError: no module named 'Display6610'
ImportError: no module named 'FontVerdana'

Please some one ca help me ? I use Thonny ide.

Thank you soo much
Sergio

User avatar
Roberthh
Posts: 1886
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: How import my own library

Post by Roberthh » Sat Feb 29, 2020 7:06 pm

Did you copy the modules to the target device? Using an IDE is not always helpful.

giants
Posts: 23
Joined: Fri Apr 26, 2019 2:07 pm

Re: How import my own library

Post by giants » Sat Feb 29, 2020 7:18 pm

Please can you help me ? I,m new on this staff
Thanks

User avatar
jimmo
Posts: 1381
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: How import my own library

Post by jimmo » Sat Feb 29, 2020 10:26 pm


giants
Posts: 23
Joined: Fri Apr 26, 2019 2:07 pm

Re: How import my own library

Post by giants » Mon Mar 02, 2020 11:05 am

Thank you soo much
now work

Sergio

Post Reply