You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding disp_select() to TFT_invertDisplay solved my problem. Likely also needed for TFT_setGammaCurve
// Send the command to invert all of the colors.
// Input: i 0 to disable inversion; non-zero to enable inversion
//==========================================
void TFT_invertDisplay(const uint8_t mode) {
if (disp_select() == ESP_OK) {
if ( mode == INVERT_ON ) disp_spi_transfer_cmd(TFT_INVONN);
else disp_spi_transfer_cmd(TFT_INVOFF);
disp_deselect();
}
}
Great library :-) Just that I had to invert the colour for a new LCD and that function didn't work. I had to change to this.
void TFT_invertDisplay(const uint8_t mode) {
if (disp_select() != ESP_OK) {
printf("TFT_invertDisplay ERROR !!!!\n");
return;
}
if ( mode == INVERT_ON ) disp_spi_transfer_cmd(TFT_INVONN);
else disp_spi_transfer_cmd(TFT_INVOFF);
disp_deselect();
}
Is it ok ?
Thanks for the great work.
The text was updated successfully, but these errors were encountered: