Hi, I have a problem with my Waveshare 4.2" BWY display. I am trying to write my own code, and I have problem with busy state of the display. I wrote sendCommand(), sendData(), drawPixel() functions and they are working as I wanted, but I have I think pretty simple waitWhenBusy() function:
void waitWhenBusy(){
while(digitalRead(busyPin) == 0) delay(1);
}
and that one does't work. I also checked with my multimeter and busy pin goes from 3.3V to about 2.0V when refreshes, which i think is way to high to be read as low state. I don't know what is wrong with my code, or is it something with my display. If someone know what is the problem, please give me something, because I am out of ideas.