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

"clear" clearly not working (at least for me) but I have a fix #6

Open
SinanAkkoyun opened this issue Dec 31, 2019 · 5 comments
Open

Comments

@SinanAkkoyun
Copy link

Hey, your clear function inits the zero[128] array but never defines it, which lead to artifacts on my display. Here is the primitive fix you could probably solve way better:

uint8_t zero[128];
for (uint8_t i = 0; i < 128; i++) {
zero[i] = 0;
}

@Grtschnk
Copy link

Memset is more concise :)

uint8_t zero[128];
memset(&zero,0,128);

@NateZimmer
Copy link

even more concise

uint8_t zero[128] = {0};

@SinanAkkoyun
Copy link
Author

Thanks guys, appreciate it :D

@actuallydoc
Copy link

Thanks.. i was wondering if its a bug hehe..

@Seyyed1404
Copy link

how to write on next line?

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

5 participants