I have been building my snap in strict confinement and I’m supposed to use i2c devices to use the gpios connected to the i2c expander under the directory(/sys/devices/platform/{*,**.i2c/). But I couldn’t find any slot to access the i2c device.
Kindly let me know if there any slot available for the same.
Yes, the yaml file is for an ubuntu-core image on the pi.
using the i2c plugs: entry like in that snapcraft.yaml should be enough to allow your application to use the i2c bus on ubuntu-core, regardless of what hardware you use.