lcd4linux:driver_tew673gru
Inhaltsverzeichnis
TEW673GRU driver
This driver supports the built-in colour LCD of the TRENDnet TEW-673GRU router. The display has 220×176 pixels and is connected via SPI; the driver uses the Linux spidev interface. It was written by Gabor Juhos for OpenWrt.
The driver has two modes:
- text mode (default): the display renders the characters itself. One character cell is 10×16 pixels, which results in 22 columns and 11 rows.
- graphic mode: LCD4Linux renders everything and sends the pixels (16 bit colour) row by row.
Display Section
Display <name> {
Driver 'TEW673GRU'
Port <string>
Mode <0|1>
Font <string>
}
Parameters
| Driver | 'TEW673GRU' |
| Port | the spidev device the display is connected to, e.g. '/dev/spidev1.0' |
| Mode | 0 = text mode (default), 1 = graphic mode |
| Font | graphic mode only: font size, specified as <width>x<height>. Default is '6×8', which is the only size supported at the moment. |
In graphic mode the usual entries of graphic displays (Foreground, Background, Basecolor, see Colors) are available, too.
Widgets
| text mode | Text, Icon and Bar widgets. Bars are drawn with the characters ' ' and '#'. |
| graphic mode | all widgets of graphic displays |
Example
This is the entry from lcd4linux.conf.sample:
Display TEW673GRU {
Driver 'TEW673GRU'
Font '6x8'
Port '/dev/spidev1.0'
}
Requirements
The kernel header linux/spi/spidev.h is needed to build the driver, and the kernel of the router has to provide the spidev device. The driver is selected at build time with –with-drivers=TEW673GRU.
lcd4linux/driver_tew673gru.txt · Zuletzt geändert: von 127.0.0.1
