X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/b76e7eb3aca5c7b91f9026a37b46e7ca50c3a350..6eb178d1ac69b29a1a5f2081515a0ac4c0e62684:/test/src/testing/board/__init__.py diff --git a/test/src/testing/board/__init__.py b/test/src/testing/board/__init__.py index 0732f78..03f6f31 100644 --- a/test/src/testing/board/__init__.py +++ b/test/src/testing/board/__init__.py @@ -1,22 +1,24 @@ """Configuration of testing fixtures depending on the board layout""" from adafruit_blinka import agnostic +import board + if agnostic.board == "feather_m0_express": - default_pin = feather_m0_express.D5 - led_pin = feather_m0_express.D13 + default_pin = board.D5 + led_pin = board.D13 led_hardwired = True led_inverted = False elif agnostic.board == "feather_huzzah": - from adafruit_blinka.board import feather_huzzah - - default_pin = feather_huzzah.GPIO4 - led_pin = feather_huzzah.GPIO0 # red led + default_pin = board.GPIO4 + led_pin = board.GPIO0 # red led led_hardwired = True led_inverted = True elif agnostic.board == "pyboard": - default_pin = pyboard.X1 - led_pin = adafruit_blinka.board.pyboard.LED_BLUE + default_pin = board.X1 + led_pin = board.LED_BLUE led_hardwired = True led_inverted = False + uartTxId = "B6" + uartRXId = "B7" else: - raise NotImplementedError("Board not supported") + raise NotImplementedError("Board not supported") \ No newline at end of file