1 # SPDX-FileCopyrightText: 2024 Brent Rubell for Adafruit Industries
3 # SPDX-License-Identifier: MIT
4 """I2C Class for Generic Agnostic Board"""
5 from random import randint
7 # from .generic_agnostic_board.pin import generic_agnostic_board
11 """Custom I2C Class for a Generic Agnostic Board"""
13 def __init__(self, *, frequency=100000):
14 # self._generic_agnostic_board = generic_agnostic_board
19 """Mocks an I2C scan and returns a list of 3 randomly generated
20 I2C addresses from 0x0 to 0x79.
22 # Generate a list of 3 randomly generated addresses from 0x0 to 0x79
25 address_list.append(randint(0x0, 0x79))