文件名称:诺基亚5110LCD
文件大小:42KB
文件格式:RAR
更新时间:2015-05-11 03:15:10
诺基亚 5110 LCD
// Define I/O pins #define BIT7 0x80 #define BIT6 0x40 #define BIT5 0x20 #define BIT4 0x10 #define BIT3 0x08 #define BIT2 0x04 #define BIT1 0x02 #define BIT0 0x01 #define LCD_PORT PORTA #define LCD_DIR DDRA #define LCD_IN PINA #define SCLK BIT4 #define SDIN BIT3 #define LCD_DC BIT2 #define LCD_CE BIT1 #define LCD_RST BIT0 //enable global interrupts #define GIE (SREG |= BIT(7)) //disable global interrupts #define GID (SREG &= ~BIT(7)) #define SLEEP() asm("sleep") /* enables an unsigned char to be used as a series of booleans */ #define BIT(x) (1 << (x)) #define SETBIT(x, y) (x |= y) #define CLEARBIT(x, y) (x &= ~y) #define CHECKBIT(x, y) (x & y) #define true 1 #define True 1 #define false 0 #define False 0 unsigned char AVR_bmp[]=
【文件预览】:
5110lcd.c
我爱AVR.JPG
5110lcd.hex