Jump to navigation Jump to search
These code snippets and functions are intended for an I2C slave device.
- listen on a set I2C device ID and issue an acknowledge bit when addressed
- read incoming bytes when addressed (i.e. master sends the slave a 'write')
- detect incoming read requests (i.e. when master sends us the write/read/address sequence)
- reply back to read requests (i.e. master sets the clock, slave sets SDA)
(code available, just not yet copied here)