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:


Display Section

Display <name> {
    Driver       'TEW673GRU'
    Port         <string>
    Mode         <0|1>
    Font         <string>
}

Parameters

Driver'TEW673GRU'
Portthe spidev device the display is connected to, e.g. '/dev/spidev1.0'
Mode0 = text mode (default), 1 = graphic mode
Fontgraphic 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 modeText, Icon and Bar widgets. Bars are drawn with the characters ' ' and '#'.
graphic modeall 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.