4 The top level of this folder contains generic drawing routines for 16-bit TFT
5 LCD displays. The core drawing functions are defined in drawing.c, and the
6 specific HW implementation of these routines (setting the individual pixels,
7 initialising the display, etc.) takes place in a seperate HW drivers that
8 implements the methods defined in lcd.h. To change the LCD used, you simply
9 need to change which HW-specific file is compiled and linked during the build
10 process, without having to change anything else in your application code.
14 - main.c - drawing.c - hw\ili9325.c
15 ---------------- ---------------- ----------------
16 APPLICATION --> GENERIC DRAWING --> SPECIFIC HW
17 CODE --> CODE --> DRIVER
18 ---------------- ---------------- ----------------
21 drawing.c Generic drawing routines such as drawing pixels, lines,
22 rectangles, as well as basic text-rendering.
24 lcd.h This file contains the prototypes of HW-specific functions
25 that must be implemented in the LCD driver, since
26 drawing.c will redirect all requests to these lower level
29 touchscreen.c Contains a very simple example of how to use the ADC to read
30 the current position on a touchscreen. No signal debouncing
31 takes places, and this code will need to be improved for use
32 in a real-world situation.
34 colors.c Functions relating to color conversion, etc.
36 fonts.c 1-bit font functions and definitions
38 aafonts.c Preliminary effort at adding 2-bit and 4-bit anti-
39 aliased fonts, though this is still a work in progress.
41 hw\* HW-specific drivers based on lcd.h