diff --git a/docs/lcdproc-user/drivers/hd44780.docbook b/docs/lcdproc-user/drivers/hd44780.docbook index 3f2bed9..71fa39e 100644 --- a/docs/lcdproc-user/drivers/hd44780.docbook +++ b/docs/lcdproc-user/drivers/hd44780.docbook @@ -17,8 +17,12 @@ parallel port: serial LPT -And supports a PIC-an-LCD or LCD serializer connected to a serial port. +It also supports the following connections: + +A PIC-an-LCD or LCD serializer connected to a serial port +A I2C port expander connected to an I2C port + The driver also lets you use multiple displays as a single virtual display. For example, a 4, 2 and 1 line display can be used to form a @@ -1223,6 +1227,112 @@ specifying which one (of multiple BWCT LCD devices) is wanted using the + + +I2C with Port-Expander + + +If you have an I2C port available that is supported by your kernel (through /dev/i2c*), +you can add a I2C port expander there (PCF8574P in this example). + + +
+HD44780: PCF8574P port expander on I2C bus + + + +
+ + +Configuration + +
+HD44780: Configuration for I2C with port expander + + + +
+ + +Device is the device file for your I2C bus (here /dev/i2c-0). +You have to load the kernel standard module i2c-dev and +the bus driver, but NO i2c chip modules (e.g. pcf8574)! + + + +Port contains the i2c address of the i2c port expander +(here 0x20, the PCF8574 from the example above, with all address bits set to 0). +Bit 8 of the address (normally 0 in I2C addresses) given in port is special: +It tells the driver to treat the device as PCA9554 or similar, +a device that needs a 2-byte command, and it will be stripped +off the address. + + +
+HD44780: Examples of I2C port expander adresses + + + +
+
+ +
+