Ok i have reloaded the code once again and i get a new errors.For Adafruit_CharLCDPlate i got
Code: Select all
Traceback (most recent call last):
File "Adafruit_CharLCDPlate.py", line 442, in <module>
lcd = Adafruit_CharLCDPlate()
File "Adafruit_CharLCDPlate.py", line 81, in __init__
self.i2c = Adafruit_I2C(addr, busnum, debug)
File "/home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCDPlate/Adafruit_I2C.py", line 36, in __init__
busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber())
IOError: [Errno 2] No such file or directory
for LCDTest igot
Code: Select all
Traceback (most recent call last):
File "LCDtest.py", line 8, in <module>
lcd = Adafruit_CharLCDPlate()
File "/home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCDPlate/Adafruit_CharLCDPlate.py", line 81, in __init__
self.i2c = Adafruit_I2C(addr, busnum, debug)
File "/home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCDPlate/Adafruit_I2C.py", line 36, in __init__
busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber())
IOError: [Errno 2] No such file or directory
secondly between lines 120 and 140 i have
Code: Select all
self.portb ]) # OLATB turning on R+G+B backlight LEDs.
# Switch to Bank 1 and disable sequential operation.
# From this point forward, the register addresses do NOT match
# the list immediately above. Instead, use the constants defined
# at the start of the class. Also, the address register will no
# longer increment automatically after this -- multi-byte
# operations must be broken down into single-byte calls.
self.i2c.bus.write_byte_data(
self.i2c.address, self.MCP23017_IOCON_BANK0, 0b10100000)
self.displayshift = (self.LCD_CURSORMOVE |
self.LCD_MOVERIGHT)
self.displaymode = (self.LCD_ENTRYLEFT |
self.LCD_ENTRYSHIFTDECREMENT)
self.displaycontrol = (self.LCD_DISPLAYON |
self.LCD_CURSOROFF |
self.LCD_BLINKOFF)
self.write(0x33) # Init
self.write(0x32) # Init
Lastly i use the command