Skip to content

Commit 1696e6c

Browse files
authored
Merge pull request #2296 from adafruit/pyleap_clue_badge
Adding code for PyLeap CLUE badge
2 parents 97ed01b + d89ac3e commit 1696e6c

File tree

1 file changed

+37
-0
lines changed
  • PyLeap_CLUE_Conference_Badge

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2+
# SPDX-FileCopyrightText: 2022 Liz Clark for Adafruit Industries (Adapted for CLUE)
3+
#
4+
# SPDX-License-Identifier: MIT
5+
6+
import board
7+
from adafruit_pybadger import pybadger
8+
9+
pybadger.badge_background(
10+
background_color=pybadger.WHITE,
11+
rectangle_color=pybadger.PURPLE,
12+
rectangle_drop=0.2,
13+
rectangle_height=0.6,
14+
)
15+
16+
pybadger.badge_line(
17+
text="@circuitpython", color=pybadger.BLINKA_PURPLE, scale=2, padding_above=2
18+
)
19+
pybadger.badge_line(text="Blinka", color=pybadger.WHITE, scale=5, padding_above=6)
20+
pybadger.badge_line(
21+
text="CircuitPythonista", color=pybadger.WHITE, scale=2, padding_above=2
22+
)
23+
pybadger.badge_line(
24+
text="she/her", color=pybadger.BLINKA_PINK, scale=4, padding_above=7
25+
)
26+
27+
display = board.DISPLAY
28+
display.rotation = 180
29+
30+
pybadger.show_custom_badge()
31+
32+
while True:
33+
if pybadger.button.a:
34+
pybadger.show_qr_code("https://circuitpython.org")
35+
36+
if pybadger.button.b:
37+
pybadger.show_custom_badge()

0 commit comments

Comments
 (0)