I'm trying to configure my EMC2101 from my Linux PC with a cheap usb to i2c adapter.
When cloning this repository and executing the example from the README I get
Traceback (most recent call last):
File "/home/jakob/MyProjects/Silke Lampe/emc2101_conf.py", line 7, in <module>
i2c = board.I2C() # uses board.SCL and board.SDA
AttributeError: module 'board' has no attribute 'I2C'
How can I tell the library that I have an i2c adapter on my pc? Or is there a way to use smbus instead of busio?
I'm trying to configure my EMC2101 from my Linux PC with a cheap usb to i2c adapter. When cloning this repository and executing the example from the README I get
How can I tell the library that I have an i2c adapter on my pc? Or is there a way to use smbus instead of busio?