Skip to content

Commit 2b87822

Browse files
authored
Merge pull request #28 from kattni/image-example
Adding image badge example and bmp.
2 parents 2681b4b + d441bed commit 2b87822

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

examples/Blinka_CLUE.bmp

113 KB
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""Custom image badge example for Adafruit CLUE."""
2+
from adafruit_pybadger import pybadger
3+
4+
pybadger.image_background("Blinka_CLUE.bmp")
5+
6+
pybadger.badge_line(text="@circuitpython", color=pybadger.SKY, scale=2, padding_above=2)
7+
pybadger.badge_line(text="Blinka", color=pybadger.WHITE, scale=5, padding_above=3)
8+
pybadger.badge_line(text="CircuitPythonista", color=pybadger.WHITE, scale=2, padding_above=2)
9+
pybadger.badge_line(text="she/her", color=pybadger.SKY, scale=4, padding_above=4)
10+
11+
while True:
12+
pybadger.show_custom_badge()

0 commit comments

Comments
 (0)