Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import os
  2. import time
  3. from PIL import Image
  4. from luma.core.interface.serial import spi
  5. from luma.oled.device import ssd1306
  6.  
  7. serial = spi(device=0, port=0, gpio_DC=16, gpio_RST=19) # luma defaults are gpio_DC=24, gpio_RST=25
  8. device = ssd1306(serial)
  9. image = Image.open(os.path.dirname(os.path.realpath(__file__)) +"/pioneer600.bmp").convert('1')
  10. device.display(image)
  11.  
  12. time.sleep(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement