Inhaltsverzeichnis

Displays

collection-mini.jpg

This a photo of my collection of liquid crystal displays about two years ago. It did grow a lot in the meantime, but I couldn't find the time to take a new photo :-) Most of the displays have been contributed by various folks out there. Thank you guys!

To check which driver is builtin to the binary type

lcd4linux -l

Driver for the following devices are available:

On the driver overview page the drivers and their hardware connections are listed.

Functions available with every driver

Besides the functions of the individual drivers (see the driver pages), every display driver provides these functions for the Evaluator:

LCD::width()width of the display: columns on text displays, pixels on graphic displays
LCD::height()height of the display: rows on text displays, pixels on graphic displays
LCD::xres()width of one character in pixels (the width of the configured Font on graphic displays)
LCD::yres()height of one character in pixels (the height of the configured Font on graphic displays)
Layout::width()width of the layout framebuffer (which may be larger than the display, see Layout)
Layout::height()height of the layout framebuffer

They are useful to write configurations that adapt to the display, e.g. width LCD::width() for an image that should fill the display, or LCD::width() / LCD::xres() for the number of characters per line on a graphic display.

Drivers with GPIOs additionally provide LCD::GPO(n, value) and LCD::GPI(n), see the GPO widget.

Note: function names are case sensitive. The functions have to be written exactly as shown on the driver pages (LCD::backlight(), not LCD::Backlight()).

Graphic displays

All graphic drivers accept the entries Foreground, Background and Basecolor (see Colors) and Inverted (0 or 1, to swap active and inactive pixels) in their display section, even if the driver page does not mention them.

Due to the modular driver concept of LCD4Linux, it should be very easy to support other displays. If you have an unsupported display, know a bit of programming in C, have some spare time and want to read your name here, read the following Howto and start coding! If you need help, just drop us an email.