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

📄 hw_lq035q1dg01.h

📁 瑞星微公司RK27XX系列芯片的SDK开发包
💻 H
字号:
/******************************************************************/
/*   Copyright (C) 2007 ROCK-CHIPS FUZHOU . All Rights Reserved.  */
/*******************************************************************
File :  hw_8238a.h
Desc :  8238a型号的LCD驱动声明

Author :  nzy
Date :
Notes :

$Log :
*********************************************************************/
#ifndef _HW_LQ035Q1DG01_H_
#define _HW_LQ035Q1DG01_H_

#include "hw_include.h"

#if(LCDPANEL == RGBIF_LQ035Q1DG01)
/*
#define SDA_PIN                      GPIOPortC_Pin4  //w++
#define SCL_PIN                      GPIOPortC_Pin5  //w++
#define CS_PIN                       GPIOPortC_Pin6  //w++
*/


#define SDA_PIN                      GPIOPortB_Pin7  //w++
#define SCL_PIN                      GPIOPortB_Pin6  //w++
#define CS_PIN                       GPIOPortF_Pin2//GPIOPortC_Pin1// GPIOPortC_Pin6 //w++




#define scl_out()                    GPIO_SetPinDirection(SCL_PIN,GPIO_OUT)
#define sda_out()                    GPIO_SetPinDirection(SDA_PIN,GPIO_OUT)
#define cs_out()                     GPIO_SetPinDirection(CS_PIN,GPIO_OUT)

#define scl_set()                    GPIO_SetPinLevel(SCL_PIN,GPIO_HIGH)
#define scl_clr()                    GPIO_SetPinLevel(SCL_PIN,GPIO_LOW)
#define sda_set()                    GPIO_SetPinLevel(SDA_PIN,GPIO_HIGH)
#define sda_clr()                    GPIO_SetPinLevel(SDA_PIN,GPIO_LOW)
#define cs_set()                     GPIO_SetPinLevel(CS_PIN,GPIO_HIGH)
#define cs_clr()                     GPIO_SetPinLevel(CS_PIN,GPIO_LOW)


#define LCD_SCLH_SDIH()   {scl_set();sda_set();}
#define LCD_SCLH_SDIL()   {scl_set();sda_clr();}
#define LCD_SCLL_SDIH()   {scl_clr();sda_set();}
#define LCD_SCLL_SDIL()   {scl_clr();sda_clr();}

#endif


#endif/* _HW_LQ035Q1DG01_H_ */

/*********************************************************************
 END OF FILE
*********************************************************************/

⌨️ 快捷键说明

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