38 #if defined(GLCD_DEVICE_LPC111X)
43 #if defined(GLCD_CONTROLLER_PCD8544)
50 SSP_IOConfig( CONTROLLER_SPI_PORT_NUMBER );
53 SSP_Init( CONTROLLER_SPI_PORT_NUMBER );
58 CONTROLLER_SS_PORT->DIR |= (1 << CONTROLLER_SS_PIN);
59 CONTROLLER_DC_PORT->DIR |= (1 << CONTROLLER_DC_PIN);
60 CONTROLLER_RST_PORT->DIR |= (1 << CONTROLLER_RST_PIN);
88 #error "Controller not supported by LPC111x"
96 SSP_Send(CONTROLLER_SPI_PORT_NUMBER,&c,1);
#define PCD8544_FUNCTION_SET
void glcd_spi_write(uint8_t c)
Write a byte to the connected SPI slave.
void glcd_select_screen(uint8_t *buffer, glcd_BoundingBox_t *bbox)
Select screen buffer and bounding box structure.
void glcd_reset(void)
Reset the LCD.
#define PCD8544_EXTENDED_INSTRUCTION
#define PCD8544_DISPLAY_NORMAL
glcd_BoundingBox_t glcd_bbox
Keeps track of bounding box of area on LCD which need to be updated next reresh cycle.
#define PCD8544_DISPLAY_CONTROL
Pinouts and driver config for NXP LPC111x ARM Cortex-M0 MCUs.
void glcd_command(uint8_t c)
Send command byte to LCD.
void glcd_clear(void)
Clear the display.
uint8_t glcd_buffer[GLCD_LCD_WIDTH *GLCD_LCD_HEIGHT/8]
Screen buffer.
#define GLCD_RESET_TIME
Reset duration by glcd_reset(), in milliseconds.
void glcd_init(void)
Initialise the LCD.