Coder Social home page Coder Social logo

Comments (6)

thijstriemstra avatar thijstriemstra commented on June 23, 2024

what device are you using? can you link the datasheet or seller link?

from luma.oled.

lmcpith avatar lmcpith commented on June 23, 2024

from luma.oled.

ve2opn avatar ve2opn commented on June 23, 2024

Identical behaviour on latest Fedora Linux/x86_64 6.3.11-200.fc38.x86_64 Kernel
and 2.42" ssd1309 i2c 128x64 module from here : https://www.aliexpress.com/item/1005003091769556.html
I needed to short D2 as explained to get it visible at 0x3c.
The same example (terminal.py) works fine with two other smaller i2c modules based sh1106 and ssd1306 chips.
However with this one, starts and fails after a second-two working.
Typically: ... i2c_rdwr
ioctl(self.fd, I2C_RDWR, ioctl_data)
OSError: [Errno 5] Input/output error

FYI, the module as HW on same host works well with this driver: https://github.com/armlabs/ssd1306_linux

from luma.oled.

ve2opn avatar ve2opn commented on June 23, 2024

Actual behaviour

[root@fedora examples]# python terminal.py -d ssd1309 --i2c-port 0
Version: luma.oled 3.12.0 (luma.core 2.4.0)
Display: ssd1309
Interface: i2c
Dimensions: 128 x 64
------------------------------------------------------------
Traceback (most recent call last):
  File "/home/msh1/TEST/luma.examples/examples/terminal.py", line 82, in <module>
    main()
  File "/home/msh1/TEST/luma.examples/examples/terminal.py", line 31, in main
    term.println("Uses any font to output text using a number of different print methods.")
  File "/usr/local/lib/python3.11/site-packages/luma/core/virtual.py", line 288, in println
    self.puts(text)
  File "/usr/local/lib/python3.11/site-packages/luma/core/virtual.py", line 304, in puts
    method(*args)
  File "/usr/local/lib/python3.11/site-packages/luma/core/virtual.py", line 339, in putch
    self.flush()
  File "/usr/local/lib/python3.11/site-packages/luma/core/virtual.py", line 402, in flush
    self._device.display(self._backing_image)
  File "/usr/local/lib/python3.11/site-packages/luma/oled/device/__init__.py", line 310, in display
    self.data(list(buf))
  File "/usr/local/lib/python3.11/site-packages/luma/core/device.py", line 55, in data
    self._serial_interface.data(data)
  File "/usr/local/lib/python3.11/site-packages/luma/core/interface/serial.py", line 131, in data
    write(list(data[i:i + block_size]))
  File "/usr/local/lib/python3.11/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 "/usr/local/lib/python3.11/site-packages/smbus2/smbus2.py", line 658, in i2c_rdwr
    ioctl(self.fd, I2C_RDWR, ioctl_data)
OSError: [Errno 5] Input/output error
[root@fedora examples]#

from luma.oled.

thijstriemstra avatar thijstriemstra commented on June 23, 2024

I was retesting with Linux ubuntu
latest Fedora Linux/x86_64 6.3.11-200.fc38.x86_64 Kernel

Anyone can test this on Raspberry Pi OS? I don't have such a device so won't be able to test..

from luma.oled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.