MCUFRIEND 3,5 320x480 ILI9486 Help with tft.vertScroll

I'm using this display in portrait mode. I need to scroll, but it's not working. The scroll only works once, and then no matter how many times I call it, it doesn't scroll anymore. Below is the code:

I put a "here" to show that it's scrolling there.

void println(char* s)
{
    outsln(s);
    if (tft.getPosY() > 300 && !tft.getRotation() && vdp_mode == TFT_MODE_TEXT)
    {
        tft.setCursor(10,350);
        tft.print("Here...");
        delay(1000);
        tft.setCursor(10,350);
        tft.print("       ");
        tft.vertScroll(0, 300, 15);
        tft.fillRect(0, 285, 320, 15, TFT_BLACK);  // Clear last line
        tft.setCursor(0, 299);  // Put cursor in the last line
    }
}

As I said, it does it the first time, and then it doesn't scroll anymore.

Thanks for your help.

A snippet rather than a complete sketch, no mention of which library is being used... don't hold your breath waiting for a resolution.

The complete sketch is impossible, it's huge. The library I'm using is "MCUFRIEND_kbv.h". I don't know the version, but it must be the latest one, which I downloaded recently.

I just want to know if this is how you use it, the tft.vertScroll(), because in the tests everything works, but not there. I just want to make the vertical scroll, of 300 lines with an offset of 15 lines.

Remembering that it works the first time, but in the other rolls, it does not work. If I turn off/reset the STM32 board, it does it again the first time and then does not do it anymore.

I apologize if this information is not enough. But I would still really appreciate any help.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.