adafruit / Adafruit-Raspberry-Pi-Python-Code

Adafruit library code for Raspberry Pi
1.43k stars 686 forks source link

LCD_MCP230XX_test.py is not working with MCP23017 and PI2 #127

Closed prashantkhandelwal closed 9 years ago

prashantkhandelwal commented 9 years ago

I have set up the MCP23017 with my 16x2 LCD. Now when I try to run the test file there is no error but the display show me blocks in the first line. I have checked and then re-checked the wiring, but I still not able to get the problem. Moreover, someone told me that this happens because when the display is not initialized.

Is it the case or I am missing something.

Thanks

prashantkhandelwal commented 9 years ago

When using the library we have to use the pin name differently. Adafruit uses a different numbering for MCP23017 as compared to other libraries and this was causing the problem for me. Changing the number to the correct pin number as per the library works.