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

LilyGO 1.14" display #5

Open
Ralph-Rastaetter opened this issue Apr 10, 2022 · 1 comment
Open

LilyGO 1.14" display #5

Ralph-Rastaetter opened this issue Apr 10, 2022 · 1 comment

Comments

@Ralph-Rastaetter
Copy link

Hi Russ,
I have a LilyGo RP2040 with a 1.14" LCD display. I downloaded the st7789py.zip file, copied all the directories except for the doc directory to the LilyGO, and none of the applications that use text will run. :(
I am running Thonny as the editor, and am using the most current versions of all the applications.
From the Examples directory, both feathers.py, and lines.py run fine.
LilGO_Picture

However, all the text display examples provide pretty much the same complaint.
Basically they all through the same error about no module named romfonts.

The fonts.py application returns the following error:
Traceback (most recent call last):
File "", line 16, in
ImportError: no module named 'romfonts'
16 from romfonts import vga2_8x8 as font1

The hello.py application returns the following error:
Traceback (most recent call last):
File "", line 27, in
ImportError: no module named 'romfonts'
27 from romfonts import vga2_bold_16x32 as font

The scroll.py application returns the following error:
Traceback (most recent call last):
File "", line 23, in
ImportError: no module named 'romfonts
23 from romfonts import vga2_bold_16x16 as font

Therefore my question is, what am I doing wrong?
Thank You,
Ralph Rastaetter
[email protected]

@Ralph-Rastaetter
Copy link
Author

Hi Russ,
I solved the issue.
The directory structure on the LilyGO RP2040 1.14"(st7789)needs to be adjusted to:
examples
lib
romfonts
sphinx
truetype
utils

In effect the fonts directory needs to be removed from the "Tree", and the contents of the fonts directory(romfonts, and truetype) both need to be placed under the root directory for the example programs to actually run.

Thank You,
Ralph

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