Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Problem with 4440 128x32 OLED
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Problem with 4440 128x32 OLED

by steve_s on Fri Mar 12, 2021 10:09 am

rpi with oled.jpg
4440 and raspberrypi B
rpi with oled.jpg (254.06 KiB) Viewed 45 times
I seem to be having a problem with my I2C OLED Display. I am using a Raspberry Pi 3B.

I have run into a problem running any of the demo type python programs for the 128x32 display. When I run the programs, they do operate correctly, such as stats.py displays the status data as expected, however after about 5 seconds the display goes completely dark and I get the following:

Code: Select all | TOGGLE FULL SIZE
pi@rpidev:~ $ sudo python3 stats.py
Traceback (most recent call last):
  File "stats.py", line 84, in <module>
    disp.show()
  File "/usr/local/lib/python3.7/dist-packages/adafruit_ssd1306.py", line 194, in show
    self.write_framebuf()
  File "/usr/local/lib/python3.7/dist-packages/adafruit_ssd1306.py", line 261, in write_framebuf
    self.i2c_device.write(self.buffer)
  File "/usr/local/lib/python3.7/dist-packages/adafruit_bus_device/i2c_device.py", line 84, in write
    self.i2c.writeto(self.device_address, buf, start=start, end=end)
  File "/usr/local/lib/python3.7/dist-packages/busio.py", line 115, in writeto
    return self._i2c.writeto(address, memoryview(buffer)[start:end], stop=stop)
  File "/usr/local/lib/python3.7/dist-packages/adafruit_blinka/microcontroller/generic_linux/i2c.py", line 49, in writeto
    self._i2c_bus.write_bytes(address, buffer[start:end])
  File "/usr/local/lib/python3.7/dist-packages/Adafruit_PureIO/smbus.py", line 308, in write_bytes
    self._device.write(buf)
OSError: [Errno 121]



I have completely reformatted the sdcard (Sandisk Ultra 32G) and reinstalled both the operating system and circuit python. At this point I am not sure which way to turn. I am left with 3 questions
1. Am I using the wrong software?
2. Do the displays automatically shut off after 5 seconds
3. Do I have a malfunctioning unit

https://github.com/adafruit/Adafruit_Ci ... 6_stats.py

steve_s
 
Posts: 2
Joined: Fri Aug 10, 2012 4:31 pm

Re: Problem with 4440 128x32 OLED

by steve_s on Mon Mar 15, 2021 1:10 pm

Problem solved, I had wired the rest pin which apparently is no longer needed. Removing the rest connection the display stayed on as I expected.

steve_s
 
Posts: 2
Joined: Fri Aug 10, 2012 4:31 pm

Please be positive and constructive with your questions and comments.