lcd.h

来自「这个程序用于单片机和无线传输芯片CC2500之间的传送」· C头文件 代码 · 共 64 行

H
64
字号
/*******************************************************************************************************
 *                                                                                                     *
 *        **********                                                                                   *
 *       ************                                                                                  *
 *      ***        ***                                                                                 *
 *      ***   +++   ***                                                                                *
 *      ***   + +   ***     This file contains all defines and function prototypes necessary to        *
 *      ***   +             run the LCD example.                                                      *
 *      ***   + +   ***                                                                                *
 *      ***   +++   ***     lcd.h                                                                     *
 *      ***        ***                                                                                 *
 *       ************                                                                                  *
 *        **********                                                                                   *
 *                                                                                                     *
 *******************************************************************************************************
 * Compiler:                Keil C51 V7.50                                                             *
 * Target platform:         Chipcon CC2500 (Silabs F320)                                               *
 * Author:                  ZXD                                                                        *
 *******************************************************************************************************
 * Revision history:     See end of file                                                               *
 *******************************************************************************************************/

//----------------------------------------------------------------------------------
// Defines

//----------------------------------------------------------------------------------
sbit SCK=P2^7;//red line
sbit SID=P2^6;// blue line
               //GND ,yellow line



//----------------------------------------------------------------------------------
//  Global Variables
unsigned char code logo[];					
unsigned char code bmp1[];

//-------------------------------------------------------------------------------------------------------
// Function declarations


//unsigned char code str1[]= "Welcome Optics!";
	  //------------------------------------------------------------------------
//LCM 液晶CA12864K 串行方式
//------------------------------------------------------------------------
//串口发送一个字节
void SendByte(unsigned char Dbyte)	;

void WriteCommand( unsigned char Cbyte )  ;

void WriteData( unsigned char Dbyte );

void LcmInit( void );  

void LcmClearTXT( void )	;//文本区清RAM函数

//写字符串
void PutStr(unsigned char row,unsigned char col,unsigned char *puts)	 ;
void PutBMP(unsigned char *puts);

void Delay(unsigned int us100)	;


⌨️ 快捷键说明

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