J
A note for anyone else that may stumble upon this topic looking for information about python and i2c.
The link above for SMBus has some examples, here is one of them.
──────────────────────────────────────────
from smbus2 import SMBusWrapper
with SMBusWrapper(1) as bus:
# Write a byte to address 80, offset 0
data = 45
bus.write_byte_data(80, 0, data)
──────────────────────────────────────────
In this example two things need to be changed to make it work. Well, three really.
Change SMBusWrapper(1) to SMBusWrapper(0) as the i2c bus on the omega 2 is 0 and not 1.
Change the address (80 in the example) to the address of the chip you are using.
Add 0x to the beginning of your address so that it is something like 0x80.
Without these changes smbus2 will not work on the omega 2. It took me a bit to figure this out and I hope it helps others.