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:
Display <name> {
Driver 'TEW673GRU'
Port <string>
Mode <0|1>
Font <string>
}
| 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.
| text mode | Text, Icon and Bar widgets. Bars are drawn with the characters ' ' and '#'. |
| graphic mode | all widgets of graphic displays |
This is the entry from lcd4linux.conf.sample:
Display TEW673GRU {
Driver 'TEW673GRU'
Font '6x8'
Port '/dev/spidev1.0'
}
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.