LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LCD (colorbars and cursor) example

Macros

#define LCD_WIDTH   BOARD_LCD.PPL
 
#define LCD_HEIGHT   BOARD_LCD.LPP
 
#define LOGO_WIDTH   110
 
#define LOGO_HEIGHT   42
 

Functions

static void putpixel (uint32_t x, uint32_t y, uint16_t val)
 
void SysTick_Handler (void)
 SysTick Interrupt Handler.
 
int main (void)
 Main entry point.
 

Variables

static uint16_t * framebuffer = (uint16_t *) FRAMEBUFFER_ADDR
 
static volatile uint32_t msec
 
const unsigned short image []
 NXP logo image data.
 
const unsigned char Cursor [(CURSOR_H_SIZE/4)*CURSOR_V_SIZE]
 'Pointer' cursor image data
 
#define CURSOR_H_SIZE   32
 'Pointer' cursor image horizontal size
 
#define CURSOR_V_SIZE   32
 'Pointer' cursor image vertical size
 
const unsigned short image [4620]
 NXP logo image data.
 

Detailed Description

This example shows how to configure the LCD. It renders colorbars, shows an image, and allows control of a pointer.

No special setup is required for the demo. Just build and run.

Build procedure: LPCOpen 18xx/43xx build instructions

Supported boards and board setup:

Submit bug reports for LPCOpen code here.

Macro Definition Documentation

#define CURSOR_H_SIZE   32

'Pointer' cursor image horizontal size

Definition at line 46 of file Cursor.h.

#define CURSOR_V_SIZE   32

'Pointer' cursor image vertical size

Definition at line 51 of file Cursor.h.

#define LCD_HEIGHT   BOARD_LCD.LPP

Definition at line 58 of file lcd.c.

#define LCD_WIDTH   BOARD_LCD.PPL

Definition at line 57 of file lcd.c.

#define LOGO_HEIGHT   42

Definition at line 60 of file lcd.c.

#define LOGO_WIDTH   110

Definition at line 59 of file lcd.c.

Function Documentation

int main ( void  )

Main entry point.

Returns
Nothing

Definition at line 101 of file lcd.c.

static void putpixel ( uint32_t  x,
uint32_t  y,
uint16_t  val 
)
static

Definition at line 78 of file lcd.c.

void SysTick_Handler ( void  )

SysTick Interrupt Handler.

Returns
Nothing

Definition at line 90 of file lcd.c.

Variable Documentation

const unsigned char Cursor[(CURSOR_H_SIZE/4)*CURSOR_V_SIZE]

'Pointer' cursor image data

uint16_t* framebuffer = (uint16_t *) FRAMEBUFFER_ADDR
static

Definition at line 63 of file lcd.c.

const unsigned short image[]

NXP logo image data.

Definition at line 50 of file image.c.

const unsigned short image[4620]

NXP logo image data.

Definition at line 50 of file image.c.

volatile uint32_t msec
static

Definition at line 64 of file lcd.c.