Added HX8340-B
[hackover2013-badge-firmware.git] / drivers / lcd / tft / readme.txt
1 TFT LCDs
2 ========
3
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.
11
12 For example:
13
14 - main.c - drawing.c - hw\ili9325.c
15 ---------------- ---------------- ----------------
16 APPLICATION --> GENERIC DRAWING --> SPECIFIC HW
17 CODE --> CODE --> DRIVER
18 ---------------- ---------------- ----------------
19
20
21 drawing.c Generic drawing routines such as drawing pixels, lines,
22 rectangles, as well as basic text-rendering.
23
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
27 functions.
28
29 touchscreen.c Contains a very simple example of how to use 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 us
32 in a real-world situation.
33
34 hw\* HW-specific drivers based on lcd.h
This page took 0.041368 seconds and 5 git commands to generate.