Skip to content
This repository was archived by the owner on Mar 23, 2019. It is now read-only.

Commit

Permalink
Added I2C LCD driver using PCF8574 port expander
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 19, 2012
1 parent e04b544 commit 56b7110
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adafruit/Adafruit_CharLCD.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ def read_nbytes_data(self, data, n): # For sequential reads > 1 byte
return self.bus.read_i2c_block_data(self.addr, data, n)


class Adafruit_CharLCD_I2C(Adafruit_CharLCD_Virtual):
class Adafruit_CharLCD_I2C_PCF8574(Adafruit_CharLCD_Virtual):
""" Assumes PCF8574 port expander """
""" data pins must be connected to P0..P3 of the port expander """

def __init__(self, bus=1, device=0x20, bit_rs=4, bit_e=6):
self.i2c = i2c_device(device, bus)
Expand Down

0 comments on commit 56b7110

Please sign in to comment.