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
def get_eeprom(self, eeprom_address=0x50):
# Two separate I2C transfers in case the buffer size is small
**q1 = [I2C.Message([0x00, 0x00]), I2C.Message([0x00]4000, read=True)]
q2 = [I2C.Message([0x0f, 0xa0]), I2C.Message([0x00]4000, read=True)]
self.i2c.transfer(eeprom_address, q1)
self.i2c.transfer(eeprom_address, q2)
return np.array(q1[1].data + q2[1].data)
The function above was taken from htpa.py code. what I understand is you are reading 4000 number of bytes from 4 location from the EEPROM, (0x00,0x00,0x0f,0x0a). Please explain this two line I bold up in the function on what is happening and is my understanding correct?
Actually this is more for explaination and details rather than an issue.
Thank You.
The text was updated successfully, but these errors were encountered:
def get_eeprom(self, eeprom_address=0x50):
# Two separate I2C transfers in case the buffer size is small
**q1 = [I2C.Message([0x00, 0x00]), I2C.Message([0x00]4000, read=True)]
q2 = [I2C.Message([0x0f, 0xa0]), I2C.Message([0x00]4000, read=True)]
self.i2c.transfer(eeprom_address, q1)
self.i2c.transfer(eeprom_address, q2)
return np.array(q1[1].data + q2[1].data)
The function above was taken from htpa.py code. what I understand is you are reading 4000 number of bytes from 4 location from the EEPROM, (0x00,0x00,0x0f,0x0a). Please explain this two line I bold up in the function on what is happening and is my understanding correct?
Actually this is more for explaination and details rather than an issue.
Thank You.
The text was updated successfully, but these errors were encountered: