Simple test¶
Ensure your device works with this simple test.
1# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
2# SPDX-FileCopyrightText: Copyright (c) 2021 Arofarn
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6import umetpy.constants as mpconsts
7
8# pylint: disable=eval-used
9print("List of all constants:\n")
10for cst in dir(mpconsts):
11 if cst[0] != "_":
12 print("{:30s} = {:.12f}".format(cst, eval("{}.{}".format("mpconsts", cst))))