i2c_slave.h 455 B

123456789101112131415161718
  1. /* Library made by: g4lvanix
  2. * Github repository: https://github.com/g4lvanix/I2C-slave-lib
  3. Info: Inititate the library by giving the required address.
  4. Read or write to the necessary buffer according to the opperation.
  5. */
  6. #ifndef I2C_SLAVE_H
  7. #define I2C_SLAVE_H
  8. #define I2C_SLAVE_REG_COUNT 30
  9. extern volatile uint8_t i2c_slave_reg[I2C_SLAVE_REG_COUNT];
  10. void i2c_slave_init(uint8_t address);
  11. void i2c_slave_stop(void);
  12. #endif // I2C_SLAVE_H