lcd4linux:driver_dpf
Inhaltsverzeichnis
DPF
Display Section
Display <name> {
Driver 'DPF'
Port '<string>'
Font '<string>'
Orientation <number>
Backlight <number>
Foreground color in hex
Background color in hex
Basecolor color in hex
}
Parameters
| Driver | 'DPF' |
| Port | Normally 'usb0'. If you have more than one dfp connected: 'usb0„ ist the first, 'usb1' the second dpf, etc. |
| Font | Default: '6×8'; but all fonts sizes are available. |
| Orientation | the dpfs logical orientation. For dpfs with height != width: 0 = landscape, 1 = portrait, 2 = reverse landscape, 3 = reverse portrait. For dpfs with height = width: 0 = standard, 1 = rotate 90° CW, 2 = rotate 180°, 3 = rotate 90° CCW. Note: physical orientation does not matter. Rotation is done in the driver. |
| Backlight | Set the dpfs backlight/brightness. Values: 0-7 (0 = off, 7 = max). |
| Foreground | Font color. |
| Background | Backround color. |
| Basecolor | … |
Examples
Display dpf {
Driver 'DPF'
Port 'usb0'
Font '8x10'
Orientation 0
Backlight 7
Foreground 'ffffff' #white
Background '000000' #black
Basecolor 'ff0000' #red
}
Plugins
The driver provides the following function:
| LCD::backlight(n) | set the backlight/brightness of the dpf to n (0..7, 0 = off, 7 = max) |
Goodbye message
When LCD4Linux is stopped, the driver clears the display and looks for the file /tmp/lcd/goodbye.
- If the file exists, its first line is displayed and the file is removed. This also happens when the splash screen is disabled.
- If the file does not exist, 'goodbye!' is displayed, but only if LCD4Linux was started with -s.
echo "Rebooting..." > /tmp/lcd/goodbye
Requirements
The driver is self-contained. No external headers/libraries needed.
lcd4linux/driver_dpf.txt · Zuletzt geändert: von 127.0.0.1
