#!/usr/bin/env python

from demo_opts import device
from oled.render import canvas
from PIL import Image


with canvas(device) as draw:
    logo = Image.open('examples/images/pi_logo.png')
    draw.bitmap((32, 0), logo, fill=1)

#!/usr/bin/env python

import os.path
from demo_opts import device
from oled.render import canvas
from PIL import Image


with canvas(device) as draw:
    img_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
        'images', 'pi_logo.png'))
    logo = Image.open(img_path)
    draw.bitmap((32, 0), logo, fill=1)

fix logo path