Details on What happening on this line below.
Raj9417 opened this issue · comments
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.