- if agnostic.board_name == ap_board.PYBOARD:
- raise NotImplementedError("No software I2C on {}".format(agnostic.board_name))
+ if agnostic.board_id == ap_board.PYBOARD:
+ raise NotImplementedError("No software I2C on {}".format(agnostic.board_id))
+ if agnostic.detector.board.any_embedded_linux:
+ # TODO: Attempt to load this library automatically
+ raise NotImplementedError(
+ "For bitbangio on Linux, please use Adafruit_CircuitPython_BitbangIO"
+ )