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

Would appreciate support for EPD_4in2 #18

Open
VictorioBerra opened this issue Aug 12, 2022 · 9 comments
Open

Would appreciate support for EPD_4in2 #18

VictorioBerra opened this issue Aug 12, 2022 · 9 comments

Comments

@VictorioBerra
Copy link

Spec https://www.waveshare.com/w/upload/6/6a/4.2inch-e-paper-specification.pdf

Link to C example https://github.com/waveshare/e-Paper/blob/master/RaspberryPi_JetsonNano/c/examples/EPD_4in2_test.c

I tried to make my own configuration, but I dont really understand how to read the command table in the specs as I am a noob.

@eXoCooLd
Copy link
Owner

Hi, i think you used the wrong c file to understand the spec :-).
Try this one: https://github.com/waveshare/e-Paper/blob/master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_4in2.c

There are a lot of defines (but they dont use them in there methodes)
For example in EPD_4IN2_Init_Partial they send 0x01 that is defined as POWER_SETTING
In the spec you can find it in 6. Command Table.

I hope that helps you to understand the command table in the spec.

@VictorioBerra
Copy link
Author

@eXoCooLd Thanks this does help! Why do they have the defines and then not use them?

Also, in EPD_4IN2_Init_Partial I see the following:

    EPD_4IN2_SendCommand(0x01); // POWER SETTING
    EPD_4IN2_SendData(0x03);
    EPD_4IN2_SendData(0x00);
    EPD_4IN2_SendData(0x2b);
    EPD_4IN2_SendData(0x2b);

And then in the table I see the following:

image

Why are they sending 0x2b twice? And what does that do exactly?

@eXoCooLd
Copy link
Owner

I don't know why they don't user there defines (code quality?)

They send Data (Values for voltage, timing ...) See page 13 in the Spec.

@chlaxmaiah
Copy link

Hi eXoCooLd
Thanks for your effort in developing c# library for graphics. I am trying to add support for Waves share 2.7 inch display.
i ahve added all commands such as poweron, off,sleep etc.. and added a new folder to devices folder of solution.

i am getting some blurred image.

could you help me with required steps to add support.

Thanks & Regards
Dsreddy

@eXoCooLd
Copy link
Owner

Hi @chlaxmaiah can you share your forked code, maybe you just missed a small detail. :-)

@chlaxmaiah
Copy link

Waveshare.zip

@chlaxmaiah
Copy link

Hi @eXoCooLd . shared the waveshre folder where I have added device support. please review and let me know the steps to add the support for new device 2.7

@chlaxmaiah
Copy link

Waveshare.Example.zip

@chlaxmaiah
Copy link

Also uploaded example fies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants