⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 disp_pic.c.svn-base

📁 一个基于UCOS/2操作系统开发的实际产品(电力负控)的代码
💻 SVN-BASE
字号:
#include  "config.h"

// 声明外部图片数据
extern uint8  gImage_xp[];
extern uint8  gImage_pic1[];

// 显示xp图片
void  DispXP_Pic(void)
{  uint32  x, y;
   uint32  no;
   uint16  dat;
   
   TftSetWindow(20,50, 20+197,50+263);
   TftSetWrite(20,50);
   no = 0;
   for(y=0; y<264; y++)
   {  for(x=0; x<198; x++)
      {  dat = (gImage_xp[no+1]<<8) | gImage_xp[no];
         TftSendDat(dat);
         no++; 
         no++;         
      }
   }
   
   TftSetWindow(0,0, 239,319);
}


// 显示全屏背景色
void  Disp_BKColor(void)
{  uint32  x, y;

   // 填充底色
   TftSetWrite(0,0);
   for(y=0; y<320; y++)
   {  for(x=0; x<240; x++)
      {  TftSendDat(1234);
      }
   }
}

⌨️ 快捷键说明

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