This C driver is designed to put text strings on a graphic LCD. It will handle small (8 pixel high) and large (16 pixel high) fonts. There are several justification modes (left, right, centered at different locations) and display options.
The initialization section is designed for use with Epson SED1565 controllers (as used in several Optrex displays) and Samsung KS0713/1713 controllers (as used in Crystalfontz CFAX type displays), but can probably be modified for others.
Note: this C code is a translation of my assembler source, which has been thoroughly tested, and is in use in commercial products. Since I don't currently use C for embedded projects, I have not actually tested this version. It compiles without error, but since it needs to be customized for your target processor and environment anyway, you will have to do the real testing.
|