Simple test

Ensure your device works with this simple test.

examples/tla202x_simpletest.py
 1# SPDX-FileCopyrightText: 2020 Bryan Siepert, written for Adafruit Industries
 2#
 3# SPDX-License-Identifier: Unlicense
 4# pylint:disable=no-member
 5import board
 6import busio
 7from adafruit_tla202x import TLA2024
 8
 9i2c = busio.I2C(board.SCL, board.SDA)
10tla = TLA2024(i2c)
11
12for i in range(4):
13    channel = i
14    tla.input_channel = channel
15    print("Channel", channel, ":", tla.voltage)