lcd4linux:driver_lph7508
Inhaltsverzeichnis
LPH7508
Pollin Electronik sells these displays together with an interface board for the parallel port.
LCD4Linux supports this display sets with two drivers: You can either use the serdisplib driver or the 'native' LPH7508 driver.
The display has some symbols, they can be used as GPO's
Display Section
serdisplib driver:
Display <name> {
Driver 'serdisplib'
Port <string>
Model 'LPH7508'
Font '6x8'
}
see the serdisplib page for (hopefully) more detailed documentation…
native LCD4Linux driver:
Display <name> {
Driver 'LPH7508'
Port <string>
Font '6x8'
Contrast <number>
Foreground <color>
Background <color>
Basecolor <color>
}
Parameters for LPH7508 driver
| Driver | 'LPH7508' |
| Port | parport device the display is attached to (e.g.'/dev/parports/0') |
| Font | '6×8' |
| Contrast | initial contrast value, 0..31 |
| Foreground | color of active pixels (RRGGBBAA or RRGGBB), default is opaque black '000000ff' (see Colors for details) |
| Background | color of inactive pixels (RRGGBBAA or RRGGBB), default is transparent 'ffffff00' (see Colors for details) |
| Basecolor | color of virtual backlight (RRGGBB), default is white 'ffffff' (see Colors for details) |
GPO's
The display has some symbols which can be controlled by GPO's:
| Symbol | GPO No. | Description |
| Battery frame | 1 | on/off |
| Battery level | 2 | bit field: first segment = bit 0, second = bit 1, … |
| Earpiece | 3 | on/off |
| Triangle | 4 | on/off |
| Speak | 5 | on/off |
| Message | 6 | on/off |
| Antenna | 7 | on/off |
| Signal level | 8 | bit field: first segment = bit 0, second = bit 1, … |
See the GPO widget for how to use these symbols.
Plugins
The LPH7508 driver provides the following function:
| LCD::contrast(n) | set contrast to n (0..31) |
Examples
Display LPH7508-native {
Driver 'LPH7508'
Port '/dev/parports/0'
Font '6x8'
Contrast 15
}
Display LPH7508-serdisplib {
Driver 'serdisplib'
Port 'PAR:/dev/parports/0'
Model 'LPH7508'
}
lcd4linux/driver_lph7508.txt · Zuletzt geändert: 2022/02/16 14:53 von 127.0.0.1

