====== TEW673GRU driver ======
This driver supports the built-in colour LCD of the TRENDnet TEW-673GRU router. The display has 220x176 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 10x16 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 {
Driver 'TEW673GRU'
Port
Mode <0|1>
Font
}
----
===== 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 x. Default is '6x8', which is the only size supported at the moment.|
In graphic mode the usual entries of graphic displays (//Foreground//, //Background//, //Basecolor//, see [[:lcd4linux:colors]]) are available, too.
----
===== Widgets =====
|**text mode**|[[:lcd4linux:widget_text|Text]], [[:lcd4linux:widget_icon|Icon]] and [[:lcd4linux:widget_bar|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//.
----