I2C
I2C (Inter-Integrated Circuit), pronounced "I-squared-C" or "I-two-C", is a popular communication protocol mainly used for low-speed, short-distance communication in embedded systems.
Analysis
Enable I2C on the Raspberry Pi via raspi-config
-
i2c-tools
-
eeprog
-
HydraBus
Read / Write
- Read:
./eeprog -x /dev/i2c-1 0x50 -16 -r 0x00:0x10
- Write:
echo "hello" | ./eeprog -f -16 -w 0 -t 5 /dev/i2c-1 0x50