I changed the display void. Got 20 fps but I really would like to get it up to 60. Any suggestions... ![]()
void st7735::display() {
setAddrWindow(0, 0, 159, 127);
DC_HIGH();
CS_LOW();
for(uint16_t x=0;x<1280;x++){
for(uint8_t b=0;b<16;b++){
if(tftbuffer[x] & (1 << b)){
SPI.transfer(0xFF);
SPI.transfer(0xFFFF);
}else{
SPI.transfer(0);
SPI.transfer(0);
}
}
}
CS_HIGH();
}