File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,21 @@ Usage Example
93
93
94
94
.. code-block :: python
95
95
96
+ import time
97
+ import board
98
+ import adafruit_adg72x
99
+
100
+ i2c = board.I2C()
101
+ switch = adafruit_adg72x.ADG72x(i2c)
102
+
103
+ count = 0
104
+
105
+ while True :
106
+ print (f " Selecting channel { count} " )
107
+ switch.channel = count
108
+ count = (count + 1 ) % 8
109
+ time.sleep(1 )
110
+
96
111
Documentation
97
112
=============
98
113
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/adg72x/en/latest/ >`_.
Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: Copyright (c) 2024 Liz Clark for Adafruit Industries
2
2
#
3
- # SPDX-License-Identifier: Unlicense
3
+ # SPDX-License-Identifier: MIT
4
4
5
5
import time
6
6
import board
You can’t perform that action at this time.
0 commit comments