Skip to content

Commit

Permalink
Add OLED screen display files.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyoung committed Jul 12, 2016
1 parent 7878878 commit 04be847
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added test/screen/CnC_Red_Alert.ttf
Binary file not shown.
Binary file added test/screen/logo.bmp
Binary file not shown.
4 changes: 2 additions & 2 deletions test/screen.py → test/screen/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
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)
Expand Down

0 comments on commit 04be847

Please sign in to comment.