-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSD1327 display fails with [Errno 22] Invalid argument #253
Comments
Have you followed ALL the pre-requisites here: https://luma-oled.readthedocs.io/en/latest/hardware.html#i2c ? What is the output of |
yes
$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- |
I'd seen that error before, and from what I remember it gets generated when a device doesn't respond on a particular address. Obviously, as you can see, there is something on 0x3C (this is the usual address for OLED displays). What is the output of Also, can you share a bit more of your code, specifically the bit where you initialize the |
pi@raspberrypi: $ pip3 list | grep luma
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
luma (0.9.6)
luma.core (1.9.0)
luma.oled (3.2.1)
from luma.core.interface.serial import i2c, spi
from luma.core.render import canvas
from luma.oled.device import ssd1327
serial = i2c(port=1, address=0x3C)
device = ssd1327(serial) |
When I run an SSD1306 via I2C on the latest versions of luma.core and luma.oled I don't experience any errors, but when I tried the SSD1327 I got exactly the same problem as you described. If I downgrade to luma.core 1.8.3 ( I think this regression is probably caused by this commit: rm-hull/luma.core@3502326 ... @Gadgetoid - are you able to shed any light on this at all? |
Okay, thank you, after downgrading it works. |
[Will keep this open until bug is fixed] |
Reading the docs for |
Luma.core 1.10.1 released with the fix for this issue. Use |
Raspberry Pi Zero W
Linux raspberrypi 4.14.98+ #1200 Tue Feb 12 20:11:02 GMT 2019 armv6l GNU/Linux
The text was updated successfully, but these errors were encountered: