'Display png on oled display Luma
I am battling to display images on a Oled display (Sh1106 128x64). I did try with png and bpm. I can display text and graphic lines but I failing to display a picture. I have tried in many ways but no success. Here is my last attempt to display a .png monochrome 128x44. No errors but also nothing on the display.
I am using luma and PIL
I would appreciate some help.
def logo():
img = Image.open("pathToFile/oie_2693527rQhTcSi6.png")
img = img.resize((128, 44))
with canvas(device) as draw:
draw.bitmap((64, 32), img)
time.sleep(10)
return
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
