"clear" clearly not working (at least for me) but I have a fix
SinanAkkoyun opened this issue · comments
Sinan commented
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;
}
David commented
Memset is more concise :)
uint8_t zero[128];
memset(&zero,0,128);
Nate Zimmer commented
even more concise
uint8_t zero[128] = {0};
Sinan commented
Thanks guys, appreciate it :D
Maj Knez commented
Thanks.. i was wondering if its a bug hehe..