]> git.donarmstrong.com Git - qmk_firmware.git/blob - drivers/avr/i2c_slave.h
7b5dcbdc3eb2f0a534ffabfcac2e1eb63a9e3ded
[qmk_firmware.git] / drivers / avr / i2c_slave.h
1 /* Library made by: g4lvanix
2  * Github repository: https://github.com/g4lvanix/I2C-slave-lib
3
4  Info: Inititate the library by giving the required address.
5        Read or write to the necessary buffer according to the opperation.
6  */
7
8 #ifndef I2C_SLAVE_H
9 #define I2C_SLAVE_H
10
11 #define I2C_SLAVE_REG_COUNT 30
12
13 extern volatile uint8_t i2c_slave_reg[I2C_SLAVE_REG_COUNT];
14
15 void i2c_slave_init(uint8_t address);
16 void i2c_slave_stop(void);
17
18 #endif // I2C_SLAVE_H