I am making use of several expansion cards on my system. I would like my application (plain C, outside Legato) to know what is the expansion card inserted.
Looking at “/sys/class/i2c-adapter/i2c-0/” I see several elements which seems to be I2C devices… but which one is the EEPROM if the expansion card? This list does not change if I insert or not an expansion card.
Using IOT_Detect (GPIO25) I can see if there is a card connected or not.
How can I read the content (from Linux terminal) of the EEPROM to get information on the expansion card connected?
I have installed “i2c-tools” but it doesn’t help.
A simple read example using C or Python or Shell would be greatly appreciated.
Thanks to help, regards, Christian.