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

Got it displaying text on the screen but where's the rest of the functionality? #2

Closed
scumola opened this issue Feb 23, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@scumola
Copy link

scumola commented Feb 23, 2022

Looks like the micropython port was just a proof-of-concept. I can clear the screen, display a JPG and draw some text, but that's it. No "draw a dot/line/circle/arc" functions, no "change the font" function (I found the change the font size, but nothing to change the ttf font or bold/italic/...). Nothing too fancy, but it works. Only the basics have been implemented it seems. Also, I'm seeing some ghosting but it's intermittent. Sometimes the screen has ghosting, sometimes it doesn't. See screenshot of the ghosting below.

Is there framebuffer support? Drawing text to the screen seems to take a while. Would be nice to write to the framebuffer and have the whole screen update at once.

Also, touchscreen example maybe? I found this: https://github.com/Xinyuan-LilyGO/lilygo-micropython/blob/master/extmod/display/epd/test/l58.py but I haven't tried to create an example with it yet.

FMScCTmUYA0c60R

FMScCw4UYAIerRg

@lbuque
Copy link
Contributor

lbuque commented Feb 24, 2022

  1. Regarding "draw a dot/line/circle/arc" functions, use framebuffer or bytearray to draw, and then call EPD47.bitmap() to display. It is completely possible to use python.

  2. We have also discovered the problem of ghosting, and we have not found the reason for it.

  3. touchscreen can refer to https://github.com/Xinyuan-LilyGO/lilygo-micropython/blob/master/extmod/touch/l58.py

@scumola
Copy link
Author

scumola commented Feb 28, 2022

Got the touchscreen working!

from l58 import L58
from time import sleep
from machine import I2C,Pin

tp = L58(I2C(1, scl=Pin(14), sda=Pin(15), freq=400000), 0x5A)
tp.begin()
while True:
    for i in range(0, tp.scanPoint()):
        data = tp.getPoint()
        print(data)
    sleep(0.1)

@lbuque lbuque added the help wanted Extra attention is needed label Apr 2, 2022
@lbuque lbuque closed this as completed Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants