📄 lcdtest.c
字号:
#include <string.h>
#include "..\inc\44blib.h"
#include "..\inc\44b.h"
#include"..\inc\def.h"
#include "..\inc\glib.h"
#include"..\inc\option.h"
#include "..\inc\LCDTest.h"
#include"..\inc\lcdlib.h"
#include"..\inc\totalBmp.h"
volatile char p_colorbmp = 0 ;
U8 High_Low( U8 x )
{
x = ( (x>>1)&0x1c ) | (x>>6) | (x<<5);
return x ;
}
void LcdColor256_Bmp( unsigned char bmp[] )
{
int i,j,k;
rPDATE=rPDATE&~(1<<5)|(1<<5); //GPE5=H
rPCONE=rPCONE&~(3<<10)|(1<<10); //GPE5=output
rPCONC=rPCONC&~(0xff<<8)|(0xff<<8); //GPC[4:7] => VD[7:4]
Lcd_Init(MODE_COLOR);//256
PutPixel=_PutPixelColor;
// Glib_Init(MODE_COLOR);//判断用什么显示方式
k = 0 ;
for(i=0;i<240;i++)
{
for(j=0;j<320;j++)
{
PutPixel( j, i, High_Low( bmp[k] ) );//其中HIGH_low是得到一个转换的东东
k++;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -