Nwazet.GO / Microbuilder / drivers / lcd / tft /

Filename Size Date modified Message
3.3 KB
39.9 KB
3.8 KB
1.7 KB
1.6 KB
18.5 KB
1.3 KB

The top level of this folder contains generic drawing routines for 16-bit TFT
LCD displays.  The core drawing functions are defined in drawing.c, and the
specific HW implementation of these routines (setting the individual pixels,
initialising the display, etc.) takes place in a seperate HW drivers that
implements the methods defined in lcd.h.  To change the LCD used, you simply
need to change which HW-specific file is compiled and linked during the build
process, without having to change anything else in your application code.

For example:

- main.c             - drawing.c          - hw\ili9325.c
----------------     ----------------     ----------------
     CODE        -->       CODE       -->      DRIVER
----------------     ----------------     ----------------

drawing.c          Generic drawing routines such as drawing pixels, lines,
                   rectangles, as well as basic text-rendering.

lcd.h              This file contains the prototypes of HW-specific functions
                   that must be implemented in the LCD driver, since
                   drawing.c will redirect all requests to these lower level
touchscreen.c      Contains a very simple example of how to use ADC to read
                   the current position on a touchscreen.  No signal debouncing
                   takes places, and this code will need to be improved for us
                   in a real-world situation.

hw\*               HW-specific drivers based on lcd.h                   
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.