This is an example Rust program to manipulate the I2C bus on Raspberry Pi on Raspbian Linux
- Enable I2C interface using config.txt or Raspberry Pi Configuration. Make sure
i2cdetect -l
showsi2c-1
- Hook up to the I2C1 pins of Pi
- Hook up a GPIO pin to Pi as interrupt line
- Reconfigure the pin number in main.rs if needed