/ test / src / testing / board / i2c.py
i2c.py
1  from adafruit_blinka import agnostic
2  
3  if agnostic.board in ("feather_m0_express", "feather_huzzah"):
4      from bitbangio import I2C
5  elif agnostic.board == "pyboard":
6      from busio import I2C
7  else:
8      raise NotImplementedError("Board not supported")