Skip to content

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

@t-o-k

Description

@t-o-k

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions