Skip to content

Commit

Permalink
more colour and layout adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdr committed Feb 27, 2023
1 parent 3645843 commit b762ee8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion micropython/examples/inky_frame/inkylauncher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def launcher():
graphics.clear()
graphics.set_pen(0)

graphics.set_pen(5)
graphics.set_pen(graphics.create_pen(255, 215, 0))
graphics.rectangle(0, 0, WIDTH, 50)
graphics.set_pen(0)
title = "Launcher"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def draw():
if feed:

# Title
graphics.set_pen(graphics.create_pen(200, 0, 0))
graphics.rectangle(0, 0, WIDTH, 40)
graphics.set_pen(1)
graphics.text("Headlines from BBC News:", 10, 10, 320, 3)

graphics.set_pen(4)
Expand All @@ -155,6 +158,9 @@ def draw():
code.set_text(feed[1]["guid"])
draw_qr_code(10, 265, 100, code)

graphics.set_pen(graphics.create_pen(200, 0, 0))
graphics.rectangle(0, HEIGHT - 20, WIDTH, 20)

else:
graphics.set_pen(4)
graphics.rectangle(0, (HEIGHT // 2) - 20, WIDTH, 40)
Expand Down

0 comments on commit b762ee8

Please sign in to comment.