Add OLED screen display files.

pull/460/merge
Christopher Young 2016-07-12 18:08:56 -04:00
rodzic 787887894d
commit 04be847069
3 zmienionych plików z 2 dodań i 2 usunięć

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 642 B

Wyświetl plik

@ -9,11 +9,11 @@ import urllib2
import json
import time
font2 = ImageFont.truetype('/root/ssd1306/fonts/C&C Red Alert [INET].ttf', 12)
font2 = ImageFont.truetype('/root/stratux/test/screen/CnC_Red_Alert.ttf', 12)
oled = ssd1306(port=1, address=0x3C)
with canvas(oled) as draw:
logo = Image.open('/root/logo.bmp')
logo = Image.open('/root/stratux/test/screen/logo.bmp')
draw.bitmap((32, 0), logo, fill=1)
time.sleep(10)