Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Interfacing (DSI, CSI, I2C, etc.) • Re: Small TFT based on ILI9341 ST7789 - how to use

$
0
0
well, never seen that effect which you're demoing here as I have used offset (in x- or y-direction) i.e. with Waveshare SKU243820 without issues.

maybe some of your other timing parameters is odd as

Code:

Platform: orange pi zero 3 with Linux 6.16.8
is for sure!
-> You're asking for support in the wrong forum dude!
Secondly you're using a different init sequence than the one provided by LCDWIKI

Code:

/***************************************************************************** * @name       :void LCD_RESET(void) * @date       :2018-08-09  * @function   :Initialization LCD screen * @parameters :None * @retvalue   :None******************************************************************************/  void LCD_Init(void){  SPI2_Init(); //”≤º˛SPI2≥ı ºªØLCD_GPIOInit();//LCD GPIO≥ı ºªØ  LCD_RESET(); //LCD ∏¥Œª//*************4.0inch ILI9486≥ı ºªØ**********//LCD_WR_REG(0XF1);LCD_WR_DATA(0x36);LCD_WR_DATA(0x04);LCD_WR_DATA(0x00);LCD_WR_DATA(0x3C);LCD_WR_DATA(0X0F);LCD_WR_DATA(0x8F);LCD_WR_REG(0XF2);LCD_WR_DATA(0x18);LCD_WR_DATA(0xA3);LCD_WR_DATA(0x12);LCD_WR_DATA(0x02);LCD_WR_DATA(0XB2);LCD_WR_DATA(0x12);LCD_WR_DATA(0xFF);LCD_WR_DATA(0x10);LCD_WR_DATA(0x00);LCD_WR_REG(0XF8);LCD_WR_DATA(0x21);LCD_WR_DATA(0x04);LCD_WR_REG(0XF9);LCD_WR_DATA(0x00);LCD_WR_DATA(0x08);LCD_WR_REG(0x36);LCD_WR_DATA(0x08);LCD_WR_REG(0xB4);LCD_WR_DATA(0x00);LCD_WR_REG(0xC1);LCD_WR_DATA(0x47); //0x41LCD_WR_REG(0xC5);LCD_WR_DATA(0x00);LCD_WR_DATA(0xAF); //0x91LCD_WR_DATA(0x80);LCD_WR_DATA(0x00);LCD_WR_REG(0xE0);LCD_WR_DATA(0x0F);LCD_WR_DATA(0x1F);LCD_WR_DATA(0x1C);LCD_WR_DATA(0x0C);LCD_WR_DATA(0x0F);LCD_WR_DATA(0x08);LCD_WR_DATA(0x48);LCD_WR_DATA(0x98);LCD_WR_DATA(0x37);LCD_WR_DATA(0x0A);LCD_WR_DATA(0x13);LCD_WR_DATA(0x04);LCD_WR_DATA(0x11);LCD_WR_DATA(0x0D);LCD_WR_DATA(0x00);LCD_WR_REG(0xE1);LCD_WR_DATA(0x0F);LCD_WR_DATA(0x32);LCD_WR_DATA(0x2E);LCD_WR_DATA(0x0B);LCD_WR_DATA(0x0D);LCD_WR_DATA(0x05);LCD_WR_DATA(0x47);LCD_WR_DATA(0x75);LCD_WR_DATA(0x37);LCD_WR_DATA(0x06);LCD_WR_DATA(0x10);LCD_WR_DATA(0x03);LCD_WR_DATA(0x24);LCD_WR_DATA(0x20);LCD_WR_DATA(0x00);LCD_WR_REG(0x3A);LCD_WR_DATA(0x66);LCD_WR_REG(0x11);LCD_WR_REG(0x36);LCD_WR_DATA(0x28);delay_ms(120);LCD_WR_REG(0x29);

Statistics: Posted by aBUGSworstnightmare — Mon Oct 27, 2025 12:19 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles