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(
 7    name_string="Blinka", hello_scale=2, my_name_is_scale=2, name_scale=3
 8)
 9
10while True:
11    pybadger.auto_dim_display(
12        delay=10
13    )  # Remove or comment out this line if you have the PyBadge LC
14    if pybadger.button.a:
15        pybadger.show_business_card(
16            image_name="Blinka.bmp",
17            name_string="Blinka",
18            name_scale=2,
19            email_string_one="blinka@",
20            email_string_two="adafruit.com",
21        )
22    elif pybadger.button.b:
23        pybadger.show_qr_code(data="https://circuitpython.org")
24    elif pybadger.button.start:
25        pybadger.show_badge(
26            name_string="Blinka", hello_scale=2, my_name_is_scale=2, name_scale=3
27        )