资源简介
msp430g2553+nokia5110显示、使用ccs
代码片段和文件信息
#include
#include
#include
#define LCD_RST_1 P1OUT |= BIT0
#define LCD_RST_0 P1OUT &=~BIT0
#define LCD_CE_1 P1OUT |= BIT1
#define LCD_CE_0 P1OUT &=~BIT1
#define LCD_DC_1 P1OUT |= BIT2
#define LCD_DC_0 P1OUT &=~BIT2
#define SDIN_1 P1OUT |= BIT3
#define SDIN_0 P1OUT &=~BIT3
#define SCLK_1 P2OUT |= BIT5
#define SCLK_0 P2OUT &=~BIT5
//============================变量定义==========================================
unsigned char TxBuf[2]={0x010x02};
unsigned char count=0;
#define BYTE_BIT0 0x01
#define BYTE_BIT7 0x80
void LCD_init(void);
void LCD_clear(void);
void LCD_write_english_string(unsigned char Xunsigned char Ychar *s);
void LCD_write_char(unsigned char c);
vo
评论
共有 条评论