Simple test
Ensure your device works with this simple test.
examples/pybadger_simpletest.py
1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
2# SPDX-License-Identifier: MIT
3
4from adafruit_pybadger import pybadger
5
6pybadger.show_badge(name_string="Blinka", hello_scale=2, my_name_is_scale=2, name_scale=3)
7
8while True:
9 pybadger.auto_dim_display(
10 delay=10
11 ) # Remove or comment out this line if you have the PyBadge LC
12 if pybadger.button.a:
13 pybadger.show_business_card(
14 image_name="Blinka.bmp",
15 name_string="Blinka",
16 name_scale=2,
17 email_string_one="blinka@",
18 email_string_two="adafruit.com",
19 )
20 elif pybadger.button.b:
21 pybadger.show_qr_code(data="https://circuitpython.org")
22 elif pybadger.button.start:
23 pybadger.show_badge(name_string="Blinka", hello_scale=2, my_name_is_scale=2, name_scale=3)