]> Repositories - Adafruit_Blinka-hackapet.git/blob - test/src/testing/board/i2c.py
Merge pull request #562 from fivetide/usb_hid
[Adafruit_Blinka-hackapet.git] / test / src / testing / board / i2c.py
1 # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
2 #
3 # SPDX-License-Identifier: MIT
4 from adafruit_blinka import agnostic
5
6 if agnostic.board in ("feather_m0_express", "feather_huzzah"):
7     from bitbangio import I2C
8 elif agnostic.board == "pyboard":
9     from busio import I2C
10 else:
11     raise NotImplementedError("Board not supported")