Comments (6)
what device are you using? can you link the datasheet or seller link?
from luma.oled.
from luma.oled.
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.
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.
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)
- how do i change in code sh1106 driver , need location for code change ? HOT 2
- [question] access screens on remote Pi?
- Support for non-Raspberry Pi Linux boards HOT 1
- New Haven 2.7 oled with ssd1322 HOT 4
- ImportError: The _imagingft C module is not installed HOT 1
- White display SPI issue with 6.x kernels HOT 2
- Array is incorrectly shifted for 96x16 OLEDs. HOT 5
- Scrolling text within bounding box
- sys_info.py: error: I2C device not found on address: 0x3C.But i2c can detected on pi 4b arm64
- Low FPS on SSD1322 and Raspberry Pi 3B HOT 1
- Orange Pi zero2 error Timer expired HOT 2
- Wrong column offset 1.54" SH1106 I2C HOT 6
- Hardware Accelerated 3D on the SSD1306
- from oled.device import ssd1306, sh1106 ModuleNotFoundError: No module named 'oled' HOT 7
- ImportError: cannot import name 'sh1107' from 'luma.oled.device' HOT 1
- Incremental screen updates with Luma and SH1106? HOT 1
- Semi-random pixels on SSD1322 - how to fix? HOT 4
- RPi3B multiple SPI SSD1306 displays HOT 5
- Support to display latin characters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luma.oled.