This software turns a single-board computer into a versatile, pocket-sized backup solution. Especially for digital photography, this is the solution for backing up images and media files on mass storage devices when traveling or at events. Media content can be viewed and rated for the subsequent process.
I have problems with my I2C display (128x64), my settings :
Display driver : SH1106
Interface for the display : I2C
I2C address : 0x3c
SPI port : 1
Resolution : 128x64
I still have no display.
To confirm there is no problem with the screen, I was able to make it work with this python script (so wiring is ok) :
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014-17 Richard Hull and contributors
# See LICENSE.rst for details.
# PYTHON_ARGCOMPLETE_OK
"""
Display the Raspberry Pi logo (loads image as .png).
"""
import os.path
from PIL import Image
from luma.core.interface.serial import i2c, spi
from luma.oled.device import ssd1306, ssd1325, ssd1331, sh1106
def main():
img_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
'images', 'pi_logo.png'))
logo = Image.open(img_path).convert("RGBA")
fff = Image.new(logo.mode, logo.size, (255,) * 4)
background = Image.new("RGBA", device.size, "white")
posn = ((device.width - logo.width) // 2, 0)
while True:
for angle in range(0, 360, 2):
rot = logo.rotate(angle, resample=Image.BILINEAR)
img = Image.composite(rot, fff, rot)
background.paste(img, posn)
device.display(background.convert(device.mode))
if __name__ == "__main__":
try:
serial = i2c(port=1, address=0x3C)
device = sh1106(serial)
main()
except KeyboardInterrupt:
pass
Is there something I can do to resolve my problem ?
I'm trying to check the code but still don't found the issue #265
Thanks by advance for your help !
Hi, first thanks for this wonderfull tool :)
I have problems with my I2C display (128x64), my settings :
I still have no display. To confirm there is no problem with the screen, I was able to make it work with this python script (so wiring is ok) :
Is there something I can do to resolve my problem ? I'm trying to check the code but still don't found the issue #265 Thanks by advance for your help !