Hi,
i was trying pretty hard to get the ssd1306 oled display working on my raspberry, but i can't really figure it out, because there seems to be a problem with the actual bus communication that i'm unable to debug unfortunately.
The display board is that one: http://www.ebay.de/itm/Blue-0-96-IIC-I2 ... 1297157720
which should be able to communicate using 4-wire spi by default the back side states that some resistors need to be added for i2c or 3 wire spi. A possible point of failure might be that you have to remove some other resistors to make 4-wire spi available - but i don't really know and those sellers can't provide much info.
I used the following pinout:
CS->#24
CLK->#23
D1=Mosi->#19
RST->#8
DC->#10
VCC->#1
GND->#6
And i sticked to the Adafruit tutorial thus using the Adafruit-Python-SSD1306 code. Those examples seem to fail with the following messages:
pi@raspberrypi:~/Adafruit_Python_SSD1306/examples $ python shapes.py
Traceback (most recent call last):
File "shapes.py", line 70, in <module>
disp.begin()
File "build/bdist.linux-armv6l/egg/Adafruit_SSD1306/SSD1306.py", line 147, in begin
File "build/bdist.linux-armv6l/egg/Adafruit_SSD1306/SSD1306.py", line 289, in _initialize
File "build/bdist.linux-armv6l/egg/Adafruit_SSD1306/SSD1306.py", line 128, in command
File "build/bdist.linux-armv6l/egg/Adafruit_GPIO/I2C.py", line 114, in write8
File "build/bdist.linux-armv6l/egg/Adafruit_PureIO/smbus.py", line 236, in write_byte_data
IOError: [Errno 5] Input/output error
The SPI and I2C bus was properly enabled using the raspi-config tool and show up:
pi@raspberrypi:~/Adafruit_Python_SSD1306/examples $ ls /dev/ | grep spi
spidev0.0
spidev0.1
pi@raspberrypi:~/Adafruit_Python_SSD1306/examples $ ls /dev/ | grep i2c
i2c-1
I've got the python i2c and smbus libs installed.
But the display stays black all the time, the code fails, and after some days of trying everything google threw on me, i kinda got desperate and thought that i might have success with asking for help here.
So is anybody running the same display circuit board (as it could be a problem with that board?), or has a different hint on what else to try: you're very very welcome!
Thank you!