File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
PyLeap_CLUE_Conference_Badge Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 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 ()
You can’t perform that action at this time.
0 commit comments