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 board
 5import busio
 6
 7import adafruit_tpa2016
 8
 9i2c = busio.I2C(board.SCL, board.SDA)
10tpa = adafruit_tpa2016.TPA2016(i2c)
11
12tpa.fixed_gain = -16