Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1526

Python • Re: getting my display to work, need a startpoint

$
0
0
What's "lib"?

If it's a directory name python imports don't work quite like that.

If the actual module is "LCD_2inch4" you need to put it where python expects to find it (e.g in the same directory as the python file that imports it) and

Code:

import LCD_2inch4
And, please, use code tags when posting python. Without them all indentation is lost and indentation matters.

Statistics: Posted by thagrol — Sat May 16, 2026 6:10 pm



Viewing all articles
Browse latest Browse all 1526

Latest Images

Trending Articles



Latest Images