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
6
7import board
8
9import adafruit_adg72x
10
11i2c = board.I2C()
12switch = adafruit_adg72x.ADG72x(i2c)
13
14count = 0
15
16while True:
17 print(f"Selecting channel {count}")
18 switch.channel = count
19 count = (count + 1) % 8
20 time.sleep(1)