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

Hardfault Handler. #4

Open
embedded4ever opened this issue Aug 31, 2020 · 0 comments
Open

Hardfault Handler. #4

embedded4ever opened this issue Aug 31, 2020 · 0 comments

Comments

@embedded4ever
Copy link

First of all, i want to say thanks for sharing this library with the community. But there are many logic error in software design.

Let me explain, if i want to show something on S2 screen, that's ok.

EPD_12in48_Display648x492

This function not working properly with other screen.
Let me explain with one example. Now, i want to show something on M1 screen. Here is the code from inside the function which i mentioned above.

 EPD_M1_SendCommand(0x13);
    for(y = 492; y < 984; y++)
        for(x = 0; x < 81; x++) {
            EPD_M1_SendData(0xff);
        }

After change ;


 for(y = 492; y < 984; y++)
        for(x = 0; x < 81; x++) {
        	EPD_M1_SendData(*(Image+ (y*163) +x));
        }

Opps, hardfault is came. Because of, trying to access an address that does not exist. Now one step, here is the solution.

 for(y = 0; y < 492; y++)
        for(x = 0; x < 81; x++) {
        	EPD_M1_SendData(*(Image+ (y*81) +x));
        }

i think, you need to add one arguman to the func which i mentioned above for selecting which screen we used.

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

1 participant