~phroa/boat-map

boat-map/display.py -rw-r--r-- 363 bytes
37260409Jack Stratton Show special columns in the schedule 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python3
import sys

sys.path.append('e-Paper/RaspberryPi_JetsonNano/python/lib/')

from waveshare_epd import epd5in83_V2
from PIL import Image

try:
    epd = epd5in83_V2.EPD()
    epd.init()

    image = Image.open('map.bmp')
    epd.display(epd.getbuffer(image))
    epd.sleep()

except KeyboardInterrupt:
    epd5in83_V2.epdconfig.module_exit()