-
Notifications
You must be signed in to change notification settings - Fork 104
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
EPD2in13v3 #90
Comments
Sorry for the late reply. Basically any driver can be added by adapting the manufacturer's sample code, but it would be much preferred to also own a unit for testing that it works. I don't happen to have one of these myself so it's unlikely I'll have a shot at it anytime soon, but PRs are always welcome. Implementing a driver is usually fairly simple, depending on the readability of the sample code. |
I also just bought a waveshare 2.13" display for the sole purpose of running PaperTTY, only to find that it's not supported. How straightforward is it to write a driver? I'm not familiar with writing drivers for SPI devices or in general, nor am I familiar with the project. And, I have extremely limited free time. But if you can point me in the general direction I might like to have a go. What files should I look at in the project, and what sample code specifically are you referring to? I know, these are "lazy" questions but I could spend hours trying to make heads or tails of these things... I'll be happy to give it a shot if I find the time and/or know where to start. |
Generally it's (been) pretty easy to write a driver for some particular display because Waveshare at least has example code available usually in both C and Python at least, and they're pretty simple and straightforward, so in many cases the driver code in PaperTTY even retains the redundant "line per byte sent" approach. To implement a driver based on the official example code basically amounts to making sure the same bytes are written in the same order in the driver code as in the example code. You could even start with a copy-paste from the official code's equivalent functions, such as drawing to the display and shave the extra so it does the same things when PaperTTY calls its That said, the current implementation of drivers could be improved a huge amount. |
For example, here's the https://github.com/joukos/PaperTTY/blob/master/papertty/drivers/drivers_partial.py#L265 "Waveshare 2.13" V2 - monochrome" driver - note that only thing needed there were the tables specific to that display. It could be that you only need to compare if those bytes match the example code and if there's any difference otherwise. For example in the |
Hi Thanks |
Is there a way to add EPD2in13v3 ?
The text was updated successfully, but these errors were encountered: