Skip to content

Display sketch doesn't work correctly after updating from Arduino IDE 1.8.5 #10106

Open
@malfis

Description

@malfis

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.

Work185notWork186and1812.txt

Workon187and1812withunnecessarycode.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Architecture: AVRApplies only to the AVR microcontrollers (Uno, etc.)Component: CoreRelated to the code for the standard Arduino APIType: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions