I have developed below I2C code with an RTC timer event handler to sample data from a sensor every 1s. This format is used mainly to save power.
I can see there is a base 300uA @ 3.3V is being consumed even when the sensor is in idle mode.
This current is mainly due to this line of code: "twi_init();". When I comment this line, that 300uA current consumption is gone.
How can I modify this code to save power and remove that base 300uA current.