资 源 简 介
LCD12864 MSP430F5529打点程序 亲测可用#include
#define uchar unsigned char
#define CS1 P2OUT |= BIT0 //串行LCD宏定义
#define CS0 P2OUT &=~BIT0
#define SID1 P2OUT |= BIT6
#define SID0 P2OUT &=~BIT6
#define SCLK1 P2OUT |= BIT2
#define SCLK0 P2OUT &=~BIT2
#define RST1 P2OUT |= BIT3
#define RST0 P2OUT &=~BIT3
//#define PSB0 P2OUT |= BIT4
//#define PSB1 P2OUT &=~BIT4
//函数声明
void InitSys();
void delay_ms(unsigned int);
void display_strings(void);
void displaydot(unsigned char x0,unsigned char y0 );
void lcdinit(void);
void clrgdram(void);
void write_com(unsigned char);
void write_data(unsigned char);
void sendbyte(unsigned char);
uchar ReadByte(void);
uchar Read_dos(uchar mode);
int flag=1;
unsigned char row1[]={""};
unsig