diff options
author | voyagertm <tmoget1977@gmail.com> | 2013-09-16 21:35:05 +0200 |
---|---|---|
committer | voyagertm <tmoget1977@gmail.com> | 2013-09-16 21:35:05 +0200 |
commit | fff8436e82ee25da2e125307668ed654dca9077d (patch) | |
tree | ebc809169365d4d47dc3d9d490791a490e16b0e6 /config/lcdproc-dev | |
parent | 033e2cf8b9ce7e41708a3c47459e8040069ea7c6 (diff) | |
download | pfsense-packages-fff8436e82ee25da2e125307668ed654dca9077d.tar.gz pfsense-packages-fff8436e82ee25da2e125307668ed654dca9077d.tar.bz2 pfsense-packages-fff8436e82ee25da2e125307668ed654dca9077d.zip |
Update lcdproc.inc
- Added the extra USB COM port from lcdproc.xml
- Changed the HD44780 part to fit the lcdproc.xml and other changes
Diffstat (limited to 'config/lcdproc-dev')
-rw-r--r-- | config/lcdproc-dev/lcdproc.inc | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc index 1436c07d..8b3ce28f 100644 --- a/config/lcdproc-dev/lcdproc.inc +++ b/config/lcdproc-dev/lcdproc.inc @@ -81,6 +81,7 @@ case "lpt1": case "ugen0.2": case "ugen1.2": + case "ugen1.3"; case "ugen2.2": continue; break; @@ -177,6 +178,9 @@ case "ugen1.2": $realport = "/dev/ugen1.2"; break; + case "ugen1.3": + $realport = "/dev/ugen1.3"; + break; case "ugen2.2": $realport = "/dev/ugen2.2"; break; @@ -303,9 +307,11 @@ case "hd44780": $config_text .= "[{$lcdproc_config['driver']}]\n"; $config_text .= "driverpath=/usr/local/lib/lcdproc/\n"; - $config_text .= "ConnectionType=lcd2usb\n"; + $config_text .= "ConnectionType={$lcdproc_config['connection_type']}\n"; + $config_text .= "Device={$realport}\n"; + $config_text .= "Port=0x378\n"; $config_text .= "Speed=0\n"; - $config_text .= "Keypad=no\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); @@ -315,6 +321,16 @@ $config_text .= "DelayMult=1\n"; $config_text .= "DelayBus=true\n"; $config_text .= "Size={$lcdproc_config['size']}\n"; + if ($lcdproc_config[connection_type] == "winamp") + { + $config_text .= "KeyDirect_1=Enter\n"; + $config_text .= "KeyDirect_2=Up\n"; + $config_text .= "KeyDirect_3=Down\n"; + $config_text .= "KeyDirect_4=Escape\n"; + } + else + { + } break; case "icp_a106": $config_text .= "[{$lcdproc_config['driver']}]\n"; @@ -531,4 +547,4 @@ EOD; } return $returnvalue; } -?>
\ No newline at end of file +?> |