16 #ifndef EZLCD_COMMON_H
17 #define EZLCD_COMMON_H
29 #define EZLCD_WIDTH 320
31 #define EZLCD_HEIGHT 240
38 #define SETBIT(port,bit) ((port) |= (1 << (bit)))
43 #define CLEARBIT(port,bit) ((port) &= ~(1 << (bit)))
59 #define EZLCD_INIT_SPI() EZLCD_SPCR = ((0 << EZLCD_SPIE) | \
67 CLEARBIT(EZLCD_SPSR, EZLCD_SPR2X);
69 #define EZLCD_INIT_SPI() EZLCD_SPCR = ((0 << EZLCD_SPIE) | \
80 #define EZLCD_SLAVE_SELECT() CLEARBIT(EZLCD_SPI_PORT, EZLCD_SS_BAR_PIN);
83 #define EZLCD_SLAVE_DESELECT() SETBIT(EZLCD_SPI_PORT, EZLCD_SS_BAR_PIN);
signed char int8_t
Definition: ezLCD_103_common.h:91
signed int int16_t
Definition: ezLCD_103_common.h:93
unsigned int uint16_t
Definition: ezLCD_103_common.h:92
uint8_t ezLCD_transfer_data_long(uint8_t data, uint8_t end_transfer)
Definition: ezLCD_103_common.c:33
unsigned char uint8_t
Definition: ezLCD_103_common.h:90
unsigned long uint32_t
Definition: ezLCD_103_common.h:94
User configuration header file.
uint8_t ezLCD_transfer_data(uint8_t data)
Definition: ezLCD_103_common.c:22
unsigned long int32_t
Definition: ezLCD_103_common.h:95