You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • boarder of a few pixels down the left and across the top

    The module looks like it's adding some padding which could cause the border, and maybe the shifting.

    You could try changing:

        spi.write(0x2A,dc);
        spi.write(0,2,0,LCD_WIDTH+1);
        spi.write(0x2B,dc);
        spi.write(0,3,0,LCD_HEIGHT+2);
        spi.write(0x2C,dc);
    

    to:

        spi.write(0x2A,dc);
        spi.write(0,0,0,LCD_WIDTH-1);
        spi.write(0x2B,dc);
        spi.write(0,0,0,LCD_HEIGHT-1);
        spi.write(0x2C,dc);
    

    Do you have any code that you know is meant for your particular module? It's entirely likely that the init code is very slightly different between ST7735 and ST7735S?

About

Avatar for Gordon @Gordon started