最好效果TM+8352调屏资料

#include "drv_comm.h"
#include "reg_base.h"
#include "lcd_sw_inc.h"
#include "lcd_sw.h"
#include "lcd_hw.h"
/*Serial interface*/
#include "lcd_if.h"
#include "eint.h"

extern void LCD_ON_Dummy(kal_bool on);
extern void LCD_SetContrast_Dummy(kal_uint8 level);
extern void LCD_SetBias_Dummy(kal_uint8 *bias);
extern void LCD_Contrast_Dummy(kal_uint8 *contrast);
extern void LCD_LineRate_Dummy(kal_uint8 *linerate);
extern void LCD_Temp_Compensate_Dummy(kal_uint8 *compensate);
extern void LCD_Set_Scan_Direction_Dummy(kal_uint8 rotate_value);
extern void LCD_Partial_On_Dummy(kal_uint16 start_page,kal_uint16 end_page);
extern void LCD_Partial_Off_Dummy(void);
extern kal_uint8 LCD_Partial_line_Dummy(void);
extern void LCD_Size_Dummy(kal_uint16 *out_LCD_width,kal_uint16 *out_LCD_height);
extern kal_uint8 LCD_GetParm_Dummy(lcd_func_type type);
extern void LCD_Delay(kal_uint32 delay_count);


static void LCD_BlockClear(kal_uint16 x1,kal_uint16 y1,kal_uint16 x2,kal_uint16 y2, kal_uint16 data)
{
kal_uint16 LCD_x, LCD_y;

for(LCD_y=y1; LCD_y<=y2; LCD_y++)
{
for(LCD_x=x1; LCD_x<=x2; LCD_x++)
{
*((volatile unsigned char *) MAIN_LCD_DATA_ADDR)=(kal_uint8)(data>>8);
*((volatile unsigned char *) MAIN_LCD_DATA_ADDR)=(kal_uint8)(data&0xFF);
}
}
}

kal_uint16 data = 0X50;

static void lcd_drv_RX_36(void)
{
MAIN_LCD_CtrlWrite_1(0x11); // SLPOUT
Delayms(200);

MAIN_LCD_CtrlWrite_1(0xD1);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_DataWrite_1(0x56); //47 54
data++;
MAIN_LCD_DataWrite_1(0x13); //11

MAIN_LCD_CtrlWrite_1(0xD0);
MAIN_LCD_DataWrite_1(0x07);
MAIN_LCD_DataWrite_1(0x02);
MAIN_LCD_DataWrite_1(0x88);

MAIN_LCD_CtrlWrite_1(0x36);
MAIN_LCD_DataWrite_1(0x09); //08

MAIN_LCD_CtrlWrite_1(0x3A);
MAIN_LCD_DataWrite_1(0x55);

MAIN_LCD_CtrlWrite_1(0xC1);
MAIN_LCD_DataWrite_1(0x10);
MAIN_LCD_DataWrite_1(0x0D);
MAIN_LCD_DataWrite_1(0x02);
MAIN_LCD_DataWrite_1(0x02);

MAIN_LCD_CtrlWrite_1(0xC0);
MAIN_LCD_DataWrite_1(0x05); //00
MAIN_LCD_DataWrite_1(0x31);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_DataWrite_1(0x01);
MAIN_LCD_DataWrite_1(0x02);

MAIN_LCD_CtrlWrite_1(0xC4);
MAIN_LCD_DataWrite_1(0x03);

MAIN_LCD_CtrlWrite_1(0xC5);
MAIN_LCD_DataWrite_1(0x02);

MAIN_LCD_CtrlWrite_1(0xD2);
MAIN_LCD_DataWrite_1(0x07);
MAIN_LCD_DataWrite_1(0x44);

MAIN_LCD_CtrlWrite_1(0xC8);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_DataWrite_1(0x25);
MAIN_LCD_DataWrite_1(0x21);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_DataWrite_1(0x08);
MAIN_LCD_DataWrite_1(0x65);
MAIN_LCD_DataWrite_1(0x25);
MAIN_LCD_DataWrite_1(0x77


);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_DataWrite_1(0x04);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_DataWrite_1(0x00);
MAIN_LCD_

Word文档免费下载Word文档免费下载:最好效果TM+8352调屏资料 (共2页,当前第1页)

最好效果TM+8352调屏资料的相关文档搜索

最好效果TM+8352调屏资料相关文档

最新文档

返回顶部