Simple test

Ensure your device works with this simple test.

examples/tpa2016_simpletest.py
 1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
 2# SPDX-License-Identifier: MIT
 3
 4import busio
 5import board
 6import adafruit_tpa2016
 7
 8i2c = busio.I2C(board.SCL, board.SDA)
 9tpa = adafruit_tpa2016.TPA2016(i2c)
10
11tpa.fixed_gain = -16