The GPIO (onoff) library shows how to 'close' a pin, which is aliased to unexport, and the i2c library has a 'close' method. What I fail to understand is when I should use these methods?
Should it be called each time I'm finished using the sensor or actuator attached to the address or pin? Or only when exiting a program completely.
As an example, I have an accelerometer that has a sequence to turn it on, would closing the i2c bus mean the next time I want to call the accelerometer I would need to go through the on sequence again?