the cortex-m3 embedded systems: programming with the kitronix k350qvg-v1-f lcd refer to “kitronix...
TRANSCRIPT
The Cortex-M3 Embedded Systems:
Programming With the Kitronix K350QVG-V1-F LCD
Refer to“Kitronix Ltd. PRODUCT SPECIFICATION”
“SSD2119 Advance Information”“Stellaris® Graphics Library USER’S GUIDE”
K350QVG-V1-F LCD
Standard LCD Module 320 x RGB x 240 Dots 3.5” 262K colors TFT display Wide temperature With SSD2119 LCD driver With white LED backlight With Touch Panel
Pin Assignment
Connection with S700
PB7 PD
0
PD7
…
PB5PH
6
PH7
K350QVG-V1-F
SSD2119 Block Diagram
Programming with SSD2119
Write Operations
Writing an Instruction
Writing Pixel Data
Programming with Stellaris® Graphics Library
The graphics library consists of three layers: The display driver layer: supplied by the
application The graphics primitives layer: draw individual
items on the display, such as lines, circles, text, and so on
The widget layer: draw a user interface element on the display and the associated user interaction responses
Supply the Display Driver Layer
Implement a set of display dependent operations, such as initialization, backlight control and contrast control
Implement a set of routines required by the graphics library draw a pixel on this display draw multiple pixels on this display draw a horizontal line on this display draw a vertical line on this display draw a filled rectangle on this display translate 24-bit RGB colors to display-specific colors flush any cached drawing operations on this display
Construct a structure of tDisplay
Block Diagram
Use Graphics Primitives and Widgets
The graphics primitives provide a set of low level drawing operations drawing lines, circles, text, and bitmap images Color is represented as 24-bit RGB A large set of fonts are provided
A drawing context should be constructed with GrContextInit() before it can be used to perform drawing operations, using the implemented display driver (i.e., an implemented instance of tDisplay)
Detailed description to all graphics primitives can be found in the user’s guide document
Higher layer routines for widget operations can also be found in the guide document