/* Library made by: g4lvanix * Github repository: https://github.com/g4lvanix/I2C-slave-lib */ #include #include #include #include "i2c_slave.h" void i2c_init(uint8_t address){ // load address into TWI address register TWAR = (address << 1); // set the TWCR to enable address matching and enable TWI, clear TWINT, enable TWI interrupt TWCR = (1<