Open
Description
The compiler error (presumably) was revealed in process of working with the screen SDD1351. In Arduino version 1.8.5, the code "Work185notWork186and1812" works fine, but in version 1.8.6 and up to the current version this code does not work correctly causing problems with displaying and blurring the image on the screen. This problem in versions above 1.8.6 is solved by adding the following lines of code, as an illogical "mantra":
millis ();
millis ();
millis ();
tft.fillRect (0, 0, 128, 128, BLACK);
tft.fillScreen (BLACK);
int color = 100;
for (int i = 0; i <= 24; i ++) {
tft.drawRoundRect (0, 0, 0, 0, 5, color);
color + = 1100;
}
static const uint16_t PROGMEM colors [] = {GREEN, WHITE};
for (uint8_t c = 0; c <2; c ++) {
tft.fillRect (0, tft.height () * c / 8, tft.width (), tft.height () / 8,
pgm_read_word (& colors [c]));
}
After that, the monitor starts working normally, but these are unnecessary lines of code, which should not be. This abnormal behavior occurs during the compilation of the program on the board.