Skip to content

Input/output error for luma.oled #372

@lmcpith

Description

@lmcpith

Type of Raspberry Pi

Linux Kernel version

5.4.0-139-generic

kindly suggest a version of luma that can work with linux ubuntu. might be timing or handhake. using oled 128x32

Expected behaviour

trying to use luma.oled library under linux ubuntu
oled is well detected and well mapped under i2c but and mapped as 0x3c, visible
hoping to use this library under linux ubuntu 18

Actual behaviour

    device = ssd1306(serial)
  File "/home/letmein/miniconda3/lib/python3.9/site-packages/luma/oled/device.py", line 171, in __init__
    self.clear()
  File "/home/letmein/miniconda3/lib/python3.9/site-packages/luma/core/mixin.py", line 46, in clear
    self.display(Image.new(self.mode, self.size))
  File "/home/letmein/miniconda3/lib/python3.9/site-packages/luma/oled/device.py", line 200, in display
    self.data(list(buf))
  File "/home/letmein/miniconda3/lib/python3.9/site-packages/luma/core/device.py", line 55, in data
    self._serial_interface.data(data)
  File "/home/letmein/miniconda3/lib/python3.9/site-packages/luma/core/interface/serial.py", line 131, in data
    write(list(data[i:i + block_size]))
  File "/home/letmein/miniconda3/lib/python3.9/site-packages/luma/core/interface/serial.py", line 140, in _write_large_block
    self._bus.i2c_rdwr(self._i2c_msg_write(self._addr, [self._data_mode] + data))
  File "/home/letmein/miniconda3/lib/python3.9/site-packages/smbus2/smbus2.py", line 658, in i2c_rdwr
    ioctl(self.fd, I2C_RDWR, ioctl_data)
OSError: [Errno 5] Input/output error

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions