From eeba30bda2a9d32fb434b502bc085aa0f35931c2 Mon Sep 17 00:00:00 2001 From: Manticore Date: Sun, 5 Jan 2025 17:24:57 +0530 Subject: [PATCH] change i2c address and add title --- i2c_driver/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) {