91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

龍邱TFT、逐飛TFT、逐飛IPS屏多合一驅(qū)動庫,基于龍邱軟件SPI通信編寫,修改部分代碼,增加對IPS屏的支持。通過修改宏定義可使本程序驅(qū)動以上三款顯示屏!!s測試硬件KV58核心板、龍邱TFT、逐飛TFT、逐飛IPS屏,理論上兼容龍邱家的所有芯片例程,如需再次開發(fā),請自行修改!

資源截圖

代碼片段和文件信息

/*********************************************************************************
**????????????????????????????Powered?by?YanMingXiao????????????????????????????**
**??????????????????????基于龍邱1.8TFT程序修改,核心為模擬spi通信???????????????**
**???????????????????????????????????2019.5.26??????????????????????????????????**
*********************************************************************************/

#include?“include.h“
#include?“picture.h“
/**********************************************************
函數(shù)名稱:TFTSPI_init()
入口參數(shù):無
出口參數(shù):無
時間:2018/1/26
功能說明:器件初始化
其他說明:無
**********************************************************/
void?TFTSPI_Init_LCD(void)
{?
??//-----端口初始化----//
??GPIO_Init(GPIOC12GPO0);
??GPIO_Init(GPIOC13GPO0);
??GPIO_Init(GPIOC14GPO0);
??GPIO_Init(GPIOC15GPO0);
??GPIO_Init(GPIOC16GPO0);??
??
??TFTSPI_RST=0;
??time_delay_ms(50);???????????????????
??TFTSPI_RST=1;
??time_delay_ms(50);???
??TFTSPI_Write_Cmd(0x11);??????? ?? //關(guān)閉睡眠,振蕩器工作
??time_delay_ms(5);??
??TFTSPI_Write_Cmd(0x3a);??????? ?? //每次傳送16位數(shù)據(jù)(VIPF3-0=0101),每個像素16位(IFPF2-0=101)
??TFTSPI_Write_Byte(0x55);
??TFTSPI_Write_Cmd(0x26);??????? ??
??TFTSPI_Write_Byte(0x04);??
??TFTSPI_Write_Cmd(0xf2);?????????????? //Driver?Output?Control(1)
??TFTSPI_Write_Byte(0x01);??
??TFTSPI_Write_Cmd(0xe0);?????????????? //Driver?Output?Control(1)
??TFTSPI_Write_Byte(0x3f);
??TFTSPI_Write_Byte(0x25);
??TFTSPI_Write_Byte(0x1c);
??TFTSPI_Write_Byte(0x1e);
??TFTSPI_Write_Byte(0x20);
??TFTSPI_Write_Byte(0x12);
??TFTSPI_Write_Byte(0x2a);
??TFTSPI_Write_Byte(0x90);
??TFTSPI_Write_Byte(0x24);
??TFTSPI_Write_Byte(0x11);
??TFTSPI_Write_Byte(0x00);
??TFTSPI_Write_Byte(0x00);
??TFTSPI_Write_Byte(0x00);
??TFTSPI_Write_Byte(0x00);
??TFTSPI_Write_Byte(0x00);??
??TFTSPI_Write_Cmd(0xe1);??????????????//Driver?Output?Control(1)
??TFTSPI_Write_Byte(0x20);
??TFTSPI_Write_Byte(0x20);
??TFTSPI_Write_Byte(0x20);
??TFTSPI_Write_Byte(0x20);
??TFTSPI_Write_Byte(0x05);
??TFTSPI_Write_Byte(0x00);
??TFTSPI_Write_Byte(0x15);
??TFTSPI_Write_Byte(0xa7);
??TFTSPI_Write_Byte(0x3d);
??TFTSPI_Write_Byte(0x18);
??TFTSPI_Write_Byte(0x25);
??TFTSPI_Write_Byte(0x2a);
??TFTSPI_Write_Byte(0x2b);
??TFTSPI_Write_Byte(0x2b);??
??TFTSPI_Write_Byte(0x3a);????
??TFTSPI_Write_Cmd(0xb1);??????//0xb1?????? //設(shè)置屏幕刷新頻率
??TFTSPI_Write_Byte(0x00);?????//0x08 //DIVA=8
??TFTSPI_Write_Byte(0x00); ????//0x08 //VPA?=8,約90Hz??
??TFTSPI_Write_Cmd(0xb4);?????????????? //LCD?Driveing?control
??TFTSPI_Write_Byte(0x07); //NLA=1NLB=1NLC=1??
??TFTSPI_Write_Cmd(0xc0);??????????????//LCD?Driveing?control??Power_Control1?
??TFTSPI_Write_Byte(0x0a);????
??TFTSPI_Write_Byte(0x02);??
??TFTSPI_Write_Cmd(0xc1);??????????????//LCD?Driveing?control
??TFTSPI_Write_Byte(0x02);??
??TFTSPI_Write_Cmd(0xc5);??????????????//LCD?Driveing?control
??TFTSPI_Write_Byte(0x4f);
??TFTSPI_Write_Byte(0x5a);??
??TFTSPI_Write_Cmd(0xc7);??????????????//LCD?Driveing?control
??TFTSPI_W

評論

共有 條評論