Closed Mausy5043 closed 4 years ago
Could you try the demo.py
example script? If you see something on the screen and can take a photo please do.
I take it you are connecting via I2C ? Do you have a url link to the device you bought ?
Could you try the
demo.py
example script? If you see something on the screen and can take a photo please do.
I take it you are connecting via I2C ?
correct.
$ python3 demo.py
Version: luma.oled 3.5.0 (luma.core 1.15.0)
Display: ssd1306
Interface: i2c
Dimensions: 128 x 64
------------------------------------------------------------
Testing basic canvas graphics...
Testing contrast (dim/bright cycles)...
Testing display ON/OFF...
Testing clear display...
Testing screen updates...
Do you have a url link to the device you bought ?
That oled is 128x96 pixels. Try adding --height=96 --width=128
when you run the script
That oled is 128x96 pixels. Try adding
--height=96 --width=128
when you run the script
I don't think so: demo.py: error: Unsupported display mode: 128 x 96
This led me to try this:
$ python3 demo.py -d sh1106
Version: luma.oled 3.5.0 (luma.core 1.15.0)
Display: sh1106
Interface: i2c
Dimensions: 128 x 64
------------------------------------------------------------
Testing basic canvas graphics...
Testing contrast (dim/bright cycles)...
Testing display ON/OFF...
Testing clear display...
Testing screen updates...
Which produces this picture
Thanks for your fast support.
I'm trying to use an SSD1306 on a Raspberry Pi 3B+ with Python3.
I think I've installed all the dependencies. When I run
python3 sys_info.py
I get this info on the terminal:The display then flashes a line of static at the top and a couple of pixellines at the bottom every 5 seconds. If I look really hard I think it looks like text. But it's gone in a second.
What might I have missed?
Some version info: