Hardware Reference
In-Depth Information
Table 4-5. [server] section config options
Option
Setting
Effect
DriverPath
/usr/lib/lcdproc/
Where LCDd will find the LCD drivers; the default path should be correct
Driver
hd44780
Set this to hd44780 , because you are driving an HD44780 or clone LCD
Bind
192.168.0.199
IP address to bind to; you can use 127.0.0.1 too but it should be an IP
address that belongs to the Raspberry Pi
Port
13666
Port to bind to
ReportLevel
3
Syslog report level
ReportToSyslog
yes
Report to syslog enable/disable
User
nobody
What user to run as
Foreground
no
Fork the process to background or let it run in the foreground
WaitTime
5
Pause time between each screen
The next section is not very important for your current LCD. This section is called [menu] and its main use is if
your LCD has a set of buttons. You can use this section to create a menu that is driven by the buttons on the front of
the LCD.
The last section is the driver you will be using. You can see it's called [HD44780] as that's the LCD you are using or
one of the clones. Take a look at Table 4-6 to see what each option will do.
Table 4-6. A list of settings for the [driver] section
Option
Setting
Effect
ConnectionType
i2c
How the LCD is connected
Device
/dev/i2c-0
What bus to use in the case of I2C
Port
0x38
The address of the port expander found via i2cdetect
Size
18x2
Screen size of the LCD
DelayBus
false
Delays messages to the bus and may be useful under a high load
DelayMult
1
The multiplier for the above setting
Keypad
no
Indicates whether your LCD has a keypad
Testing the Server
Now it's time to test the server. Save the above configuration file as /etc/sysconfig/lcdproc/LCDd.conf and test the
server by starting it on the command line with the foreground flag:
# LCDd -f
 
 
Search WWH ::




Custom Search