bus := i2c.Bus --sda=gpioSda --scl=gpioScl --frequency=100_000
ads1115 := bus.device Ads1115.I2C_ADDRESS
...
floitsch02/22/2024 06:12 PM
Typically we only close pins (or other objects) if we have allocated them. So the I2C bus is not supposed to close the pin itself.
floitsch02/22/2024 06:14 PM
We might not be fully consistent with that though, but closing should be idempotent and thus closing again should be fine. (Again, I think we are not 100% consistent there yet, but are working towards it)