aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc-dev/lcdproc.inc
diff options
context:
space:
mode:
authorMichele Di Maria <michele@nt2.it>2012-01-08 17:35:40 +0100
committerMichele Di Maria <michele@nt2.it>2012-01-08 17:35:40 +0100
commitee861b0d1d795293830b61436cb00d40e0464e26 (patch)
tree3491891ba3d00bdce45ac988907522077ca4dd33 /config/lcdproc-dev/lcdproc.inc
parent3ee714452a28b147f2323ba22a953f9f60e61b98 (diff)
downloadpfsense-packages-ee861b0d1d795293830b61436cb00d40e0464e26.tar.gz
pfsense-packages-ee861b0d1d795293830b61436cb00d40e0464e26.tar.bz2
pfsense-packages-ee861b0d1d795293830b61436cb00d40e0464e26.zip
- Removed driver "HD44780 fast" since the problem why this fork was created has been solved in a different way
- Set the custom Keys and Menu section for the "sdelcd" driver - Added the Blacklight setting. Now it is possible to optionally turn the blacklight on, off or (default) to leave it managed by the panel - Added the "output led" support for the "CFontz633" driver. This is totally to test since my panel doesn't have any output led, worked almost blind
Diffstat (limited to 'config/lcdproc-dev/lcdproc.inc')
-rw-r--r--config/lcdproc-dev/lcdproc.inc58
1 files changed, 32 insertions, 26 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc
index 14e5dc73..cfea30f3 100644
--- a/config/lcdproc-dev/lcdproc.inc
+++ b/config/lcdproc-dev/lcdproc.inc
@@ -240,18 +240,38 @@
$config_text .= "DriverPath=/usr/local/lib/lcdproc/\n";
$config_text .= "GoodBye=\"Thanks for using\"\n";
$config_text .= "GoodBye=\" {$g['product_name']} \"\n";
- /* FIXME: Specific to the pyramid project */
- $config_text .= "ToggleRotateKey=Enter\n";
- $config_text .= "PrevScreenKey=Left\n";
- $config_text .= "NextScreenKey=Right\n";
- $config_text .= "ScrollUpKey=Up\n";
- $config_text .= "ScrollDownKey=Down\n";
- /* FIXME: pyramid test menu */
- $config_text .= "[menu]\n";
- $config_text .= "MenuKey=Escape\n";
- $config_text .= "EnterKey=Enter\n";
- $config_text .= "UpKey=Up\n";
- $config_text .= "DownKey=Down\n";
+ if ($lcdproc_config[backlight] != "" && $lcdproc_config[backlight] != "default")
+ {
+ /* Backlight setting */
+ $config_text .= "Backlight={$lcdproc_config[backlight]}\n";
+ }
+ if ($lcdproc_config[driver] == "sdeclcd")
+ {
+ /* Sdeclcd Keys settings */
+ $config_text .= "PrevScreenKey=Down\n";
+ $config_text .= "NextScreenKey=Up\n";
+ /* Sdeclcd Menu settings */
+ $config_text .= "[menu]\n";
+ $config_text .= "MenuKey=Left\n";
+ $config_text .= "EnterKey=Right\n";
+ $config_text .= "UpKey=Up\n";
+ $config_text .= "DownKey=Down\n";
+ }
+ else
+ {
+ /* Generic Keys settings */
+ $config_text .= "ToggleRotateKey=Enter\n";
+ $config_text .= "PrevScreenKey=Left\n";
+ $config_text .= "NextScreenKey=Right\n";
+ $config_text .= "ScrollUpKey=Up\n";
+ $config_text .= "ScrollDownKey=Down\n";
+ /* Generic Menu settings */
+ $config_text .= "[menu]\n";
+ $config_text .= "MenuKey=Escape\n";
+ $config_text .= "EnterKey=Enter\n";
+ $config_text .= "UpKey=Up\n";
+ $config_text .= "DownKey=Down\n";
+ }
/* lcdproc default driver definitions */
switch($lcdproc_config[driver]) {
case "bayrad":
@@ -338,20 +358,6 @@
$config_text .= "DelayBus=true\n";
$config_text .= "Size={$lcdproc_config['size']}\n";
break;
- case "hd44780 fast":
- $config_text .= "[{$lcdproc_config['driver']}]\n";
- $config_text .= "ConnectionType=lcd2usb\n";
- $config_text .= "Charmap=hd44780_default\n";
- $config_text .= "Keypad=yes\n";
- $config_text .= set_lcd_value("contrast", 1000, 850);
- $config_text .= set_lcd_value("brightness", 1000, 800);
- $config_text .= set_lcd_value("offbrightness", 1000, 0);
- $config_text .= "Backlight=yes\n";
- $config_text .= "OutputPort=no\n";
- $config_text .= "DelayMult=1\n";
- $config_text .= "DelayBus=no\n";
- $config_text .= "Size={$lcdproc_config['size']}\n";
- break;
case "icp_a106":
$config_text .= "[{$lcdproc_config['driver']}]\n";
$config_text .= "Device={$realport}\n";