-
Notifications
You must be signed in to change notification settings - Fork 108
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
OSError: [Errno 2] ENOENT trying some examples #145
Comments
It should be better documented. The ENOENT error means the program is looking for a file it can't find. The clock program reads images from a clock directory for the backgrounds. The directory is named clock_{width}x{height} where {width} and {height} are the width and height of the display in landscape mode. For example, a 320x240 display would read from a directory named clock_320x240. The repo has sample directories for 128x128, 160x128, 240x135, 240x240, and 320x240 displays. Create a directory for your screen size and copy the images into that directory. You will also need the pacifico40.py in the same directory as the clock.py file. The watch.py program needs a face_{width}x{height}.jpg image in the same directory as the watch.py program. The repo has several sample face images you can use. The create_face_jpg.py file can create a custom-sized face image using a PC. |
Thank you, it works fine now for the above mentioned resolutions. |
To add a custom-sized display, create an orientation table and pass it to the ST7789 method as the named parameter The orientation table lists tuples for each rotation used to set the MADCTL register, display width, display height, start_x, and start_y values. I can help you figure out the necessary values if needed. Can you give me a link to the display you are using? |
I was a few day on tour. |
I have an ESP32 WROOM with a display 1,69 ST7789.
Installed is MicroPython v1.20.0-dirty on 2023-06-10; ESP32 GENERIC-7789 with ESP32
I tried some of the examples. "tiny_hello.py" and "chango.py" work fine.
"clock,py" gives the follwing error:
Traceback (most recent call last):
File "", line 191, in
File "", line 118, in main
OSError: [Errno 2] ENOENT
line 118: "tft.jpg(image_file, 0, 0, st7789.SLOW)
"watch.py" is similar:
File "", line 147, in
File "", line 47, in main
OSError: [Errno 2] ENOENT
line 47: tft.jpg(face, 0, 0, st7789.SLOW)
what can I do?
The text was updated successfully, but these errors were encountered: