This commit is contained in:
2025-05-04 00:40:42 +02:00
parent b41ea791a8
commit 16925fba79
4 changed files with 371 additions and 133 deletions

17
i2c.h Normal file
View File

@@ -0,0 +1,17 @@
/*
* I2C_Slave_H_File.h
*
*/
#ifndef I2C_SLAVE_H_FILE_H_
#define I2C_SLAVE_H_FILE_H_
#include <avr/io.h> /* Include AVR std. library file */
void I2C_Slave_Init(uint8_t slave_address); /* I2C slave initialize function with Slave address */
int8_t I2C_Slave_Listen(); /* I2C slave listen function */
int8_t I2C_Slave_Transmit(char data); /* I2C slave transmit function */
char I2C_Slave_Receive(); /* I2C slave receive function */
#endif /* I2C_SLAVE_H_FILE_H_ */