You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sensor_address.setter
def sensor_address(self, new_addr):
if isinstance(new_addr, int) and (new_addr >= 3 and new_addr <= 119):
self.bus.write_byte_data(self.address, 1, new_addr)
self.bus.write_byte_data(self.address, 1, new_addr) #<= ADD THIS LINE
self.reset()
self.address = new_addr
else:
raise ValueError('I2C address must be between 3-119 or 0x03-0x77.')
The text was updated successfully, but these errors were encountered:
To fix it change:
The text was updated successfully, but these errors were encountered: