vroland / epdiy

EPDiy is a driver board for affordable e-Paper (or E-ink) displays.
https://vroland.github.io/epdiy-hardware/
GNU Lesser General Public License v3.0
1.25k stars 178 forks source link

Can I use it with rust? If so, are there any examples? #278

Closed anuger closed 3 months ago

martinberlin commented 5 months ago

I don't think you can because this uses specific instructions in the ESP-IDF components to handle LCD module communications. Please show us another projects using parallel LCD transmission mode and we will take a look. First thoughts in my humble opinion is that this component is quite complicated to be ported to another language.

mickeprag commented 5 months ago

I think he means using epdiy from a rust application. I think it is doable since rust is good at interfacing C-code. But we have no working examples, you are on your own.

martinberlin commented 5 months ago

I think he means using epdiy from a rust application

Thanks Micke. @anuger this is assigned to you now please enlighten us and tell what you wanted to do since we just have a title from you. Added the “waiting for feedback” tag to ensure you can explain us what is the plan to in the next weeks

anuger commented 5 months ago

@martinberlin I currently have an ed060kc1 E-Paper and an epdiy V7. I want to use rust to control E-Paper, but I don’t know if it is possible. At present, I only know these https://esp-rs.github.io/std-training/

vroland commented 5 months ago

I haven't looked at the espressif Rust resources lately, looks like they have made some progress. You can probably generate some bindings, although the memory / ownership model may be tricky. It would definitely be fun to try it out if you get something working, I would ditch C for Rust any time if the ecosystem was on-par. As it stands right now though, C is much more compatible to other ecosystems like arduino and I can't justify the work to investigate bindings myself.

martinberlin commented 3 months ago

Since there is no more feedback since almost 2 months from @vroland reply I'm closing here. @anuger please make a new one providing more details if there is a serious intention to port this component to Rust. I would be also interested in seeing that happen (And into learn Rust)