File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 6363# Some devices have multiple available addresses - this is a list of these addresses.
6464# NOTE: The first address in this list is considered the default I2C address for the
6565# device.
66- _AVAILABLE_I2C_ADDRESS = [0x6F ]
66+ _QWIIC_BUTTON_DEFAULT_ADDRESS = 0x6F
67+ _FULL_ADDRESS_LIST = list (range (0x08 , 0x77 + 1 )) # Full address list (excluding reserved addresses)
68+ _FULL_ADDRESS_LIST .remove (_QWIIC_BUTTON_DEFAULT_ADDRESS >> 1 ) # Remove default address from list
69+ _AVAILABLE_I2C_ADDRESS = [_QWIIC_BUTTON_DEFAULT_ADDRESS ] # Initialize with default address
70+ _AVAILABLE_I2C_ADDRESS .extend (_FULL_ADDRESS_LIST ) # Add full range of I2C addresses
6771
6872# Define the class that encapsulates the device being created. All information associated
6973# with this device is encapsulated by this class. The device class should be the only value
You can’t perform that action at this time.
0 commit comments