diff --git a/i2c_driver/main.c b/i2c_driver/main.c index ec07f24..14e5305 100644 --- a/i2c_driver/main.c +++ b/i2c_driver/main.c @@ -1,3 +1,9 @@ +/* + Author : Siva prakasam V + Date : 05/01/25 + Title : I2C driver for Battery Monitor +*/ + #include #include #include @@ -7,7 +13,7 @@ #include #define I2C_BUS "/dev/i2c-1" // I2C bus device -#define I2C_ADDRESS 0x50 // Example I2C device address (7-bit address) +#define I2C_ADDRESS 0x6B // I2C device address // Function to write a byte to the I2C device int i2c_write(int file, uint8_t reg, uint8_t value) {