Inhaltsverzeichnis

picoLCD Graphic driver

This driver supports the picoLCD Graphic (256×64 pixels) USB display from mini-box.com. The display has a keypad, eight LEDs and is a true USB HID device (vendor ID 0x04d8, product ID 0xc002).

For the 20×2 character display see the picoLCD driver.

Example configurations can be found in the directory contrib/picoLCD of the source.


Display Section

Display <name> {
    Driver    'picoLCDGraphic'
    Size      <string>
    Update    <number>
    Timeout   <number>
    Contrast  <number>
    Backlight <0|1>
    Inverted  <0|1>
}

Parameters

Driver'picoLCDGraphic'
Size<width>x<height>. The entry is required, but the driver always uses 256×64.
Updateinterval (msec) in which the display is redrawn from the internal framebuffer, default is 200. With 0 the display is redrawn after every changed widget (direct update), which is much slower.
TimeoutUSB read timeout in msec (1..1000, default is 5). The display times out on every read unless a key has been pressed, so this value influences how fast LCD4Linux reacts.
Contrastinitial contrast, 0..255
Backlightinitial backlight state, 0 (off) or 1 (on). Values greater than 1 are rejected here; use the function LCD::backlight() for finer steps.
Invertedset to 1 to invert the display

The font is fixed to 6×8.


Plugins

The driver provides the following functions:

LCD::contrast(n)set the contrast to n (0..255)
LCD::backlight(n)set the backlight brightness to n (0..255)
LCD::gpo(n,v)switch LED n (0..7) on (v = 1) or off (v = 0)
LCD::GPI(1)returns the code of the key that is currently pressed (0 = none)

The eight LEDs are also available as GPO1 .. GPO8 for the GPO widget.


Keypad

The keys of the display can be used with the keypad widget. They are polled every 100 msec, press and release events are reported.

key codekeypad widget
1cancel
2left
3right
5up
6confirm
7down

Example

Display picoLCDGraphic {
    Driver    'picoLCDGraphic'
    Size      '256x64'
    Update    200
    Contrast  230
    Backlight 1
}

Requirements

libusb (0.1) is needed. The driver is selected at build time with –with-drivers=picoLCDGraphic.