I need help please... #2246
-
Hello, i would like to know how we do for import in the form of a module ( More precisely, my problem is that I try to import the github library: https://github.com/waveshare/WSLCD1in8 to run an LCD. It’s a ST7735S by Waveshare for microbit. But I’m trying to import it into my program. But I don’t know how to do it. Yes, I’m a noob Thanks for all. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The waveshare library you mention is designed for Makecode programming environment so won't work in micropython . Unless someone else has written a suitable micropython library for this display , you may have to change the display to another device that has a library or see if your project can be made using Makecode ? |
Beta Was this translation helpful? Give feedback.
-
As @dsssssssss9 has mentioned that library is for MakeCode, that while has a Python mode, it is not the same as MicroPython. If you are up for the challenge you can try to port an existing MicroPython library to the micro:bit, like this one (there might be more in GitHub): https://github.com/boochow/MicroPython-ST7735 Things like |
Beta Was this translation helpful? Give feedback.
The waveshare library you mention is designed for Makecode programming environment so won't work in micropython .
Unless someone else has written a suitable micropython library for this display , you may have to change the display to another device that has a library or see if your project can be made using Makecode ?