Simple test

Ensure your device works with this simple test.

examples/adg72x_simpletest.py
 1# SPDX-FileCopyrightText: Copyright (c) 2024 Liz Clark for Adafruit Industries
 2#
 3# SPDX-License-Identifier: MIT
 4
 5import time
 6import board
 7import adafruit_adg72x
 8
 9i2c = board.I2C()
10switch = adafruit_adg72x.ADG72x(i2c)
11
12count = 0
13
14while True:
15    print(f"Selecting channel {count}")
16    switch.channel = count
17    count = (count + 1) % 8
18    time.sleep(1)