Is it intended that i2c.close also closes the asso...
# help
k
If I create a i2c bus device, use and close it again, then a repeated creation reports an ALREADY_IN_USE exception error. https://cdn.discordapp.com/attachments/1210260161323606118/1210260161545895986/image.png?ex=65e9e99c&is=65d7749c&hm=31ea2950e8136f026e9fed465ea4a4d35a249a91a45cc5173b4670c5f8bbe5da&
gpioSda := gpio.Pin GPIO_I2C_SDA gpioScl := gpio.Pin GPIO_I2C_SCL bus := i2c.Bus --sda=gpioSda --scl=gpioScl --frequency=100_000 ads1115 := bus.device Ads1115.I2C_ADDRESS ...
f
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.
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)
k
thank you