我用的也是240*320主控芯片是SSD1289

TFT液晶显示图片

Image2lcd上面的相关设置如上图所示

void drawpicture(const u8* pic)

 {

 int i,j,n=0,m=1;

 for(i=0;i<320;i++)

   {

     for(j=0;j<240;j++)

     {

         SetCursor(i,j);   

   LCD_WriteRAM_Prepare();

      wr_dat((((u16)(pic[n]))<<8)|pic[m]);

      n=n+2;      m=m+2;    

}

   }

  }

 void SetCursor(u16 x,u16 y)

{

    LCD_WriteReg(0x004e,y);     //行  

    LCD_WriteReg(0x004f,0x13f-x); 

//列  }

相关文章:

  • 2021-08-27
  • 2022-02-25
  • 2021-08-29
  • 2021-05-26
  • 2021-12-23
  • 2021-04-03
  • 2021-08-11
  • 2021-04-26
猜你喜欢
  • 2021-08-29
  • 2021-12-26
  • 2021-08-21
  • 2021-07-25
  • 2021-11-06
  • 2021-11-27
  • 2021-12-13
相关资源
相似解决方案