micropython-drivers icon indicating copy to clipboard operation
micropython-drivers copied to clipboard

Wrong pin for I2C(1) sda in ssd1306.py

Open t-o-k opened this issue 8 years ago • 0 comments

Hi Kenneth

According to these images: http://micropython.org/resources/pybv10-pinout.jpg http://micropython.org/resources/pybv11-pinout.jpg

the pin for I2C(1) scl is X9 and the pin for I2C(1) sda is X10.

When I ran your code on a PyBoard v1.1 with a SSD1306 OLED display connected to I2C-bus 1 the display did not work and I got this error message "Unexpected error: [Errno 5] EIO".

But when I changed line 94 in ssd1306.py from this: if pinout['sda'] == 'X9':

to this: if pinout['sda'] == 'X10':

the display worked and there were no error messages.

Best regards Tor Olav Kristensen BTW: Thank you for making this library.

t-o-k avatar Apr 05 '17 22:04 t-o-k