e-Paper icon indicating copy to clipboard operation
e-Paper copied to clipboard

How to obtain a shared lib (.so) for EPD C driver?

Open Suniron opened this issue 1 year ago • 4 comments

Hey there,

I have the 2.7 V2 E-paper screen and I want to bind the C driver with bun:ffi to interact with my screen from Typescript code.

To do that, I need to have the driver as a shared library (.so file). So, how can I compile the C code to obtain this?

Thanks in advance 🤞

Suniron avatar Sep 13 '24 07:09 Suniron

Hey, you can use cmake to build the project instead of the Makefile to get the shared lib.

mbadinga1 avatar Oct 09 '24 12:10 mbadinga1

Thanks for your answer 🙏.

Would you happen to have an example of the command to build the project?

I never used cmake.. 🥵

Suniron avatar Oct 11 '24 07:10 Suniron

Hello, I have made an example with my 7in5 scrceen using raspi. https://github.com/mbadinga1/Waveshare_7in5_CMAKE

You can try to update it on your project

mbadinga1 avatar Oct 16 '24 14:10 mbadinga1

@mbadinga1 : Wow, so cool! Also for me, the examples are working, but it is very hard to use them for own projects...!

cmake makes life easier. I'm currently trying to adapt your project to 2in9_V2, doable but not finished yet. Do you have a guideline on how to add other displays?

zackdvd avatar Mar 30 '25 11:03 zackdvd