Skip to content

OSError: [Errno 5] Input/output error #25

Open
@NathanRibo

Description

@NathanRibo

Two weeks ago, after a previous issue with the library was resolved, everything was working perfectly via I2C. I started with the example code and then moved on to writing my own, using both the display (connected via Stemma QT to the “Adafruit I2C Stemma QT Rotary Encoder Breakout with Encoder - STEMMA QT / Qwiic”) and a rotary encoder. Both devices worked simultaneously without any problems. However, recently, without making any changes to my Raspberry Pi 3B+ setup or wiring, I started getting the following error, even when using the example code:
OSError: [Errno 5] Input/output error.

This error only occurs when trying to use the display. The rotary encoder works fine, and both the encoder and the display are detected via i2cdetect -y 1. Here’s what I’ve tried so far:

  • Connected the display directly to the Raspberry Pi via I2C (without going through the rotary encoder)

  • Tested a second display of the same model

  • Changed baudrates in case the issue was with communication speed

Despite all of this, the error persists.

I also switched to SPI as an alternative, and it worked at first, but the issue returned after about a day. While SPI does not raise an error in the terminal, the display remains black.

Given that the display is consistently detected by i2cdetect, and the rotary encoder works without issue, I’m not sure how to proceed. Any help or insights would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions