disp_pic.c

来自「使用ARM2200平台」· C语言 代码 · 共 28 行

C
28
字号
#include  "config.h"

// 声明外部图片数据

extern uint8  gImage_pic1[];
extern uint8  gImage_pic2[];



// 显示图片1
void  Disp_Pic1(void)
{  uint16 x, y;
   uint16  no;
   uint16  dat;
   
   TftSetWrite(0,0);
   no = 0;
   for(y=0; y<320; y++)
   {  for(x=0; x<240; x++)
      {  dat = (gImage_pic2[no+1]<<8) | gImage_pic2[no];
         TftSendDat(dat);
         no++; 
         no++;         
      }
   }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?