X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/367c82b41e27372dfe4fa8ea9f9b8699e37bb1ee..355416c522c7f083978329ce28b5c49cfa0eb9bf:/python/testing/board/__init__.py diff --git a/python/testing/board/__init__.py b/python/testing/board/__init__.py index 47fb847..a961969 100644 --- a/python/testing/board/__init__.py +++ b/python/testing/board/__init__.py @@ -2,10 +2,20 @@ import agnostic import board if agnostic.board == "feather_m0_express": - default_pin = board.D5 - led_pin = board.D13 - pin_count = 38 + from board import feather_m0_express + default_pin = feather_m0_express.D5 + led_pin = feather_m0_express.D13 + led_hardwired = True + led_inverted = False elif agnostic.board == "feather_huzzah": - default_pin = board.GPIO4 - led_pin = board.GPIO2 - pin_count = 10 + from board import feather_huzzah + default_pin = feather_huzzah.GPIO4 + led_pin = feather_huzzah.GPIO0 # red led + led_hardwired = True + led_inverted = False +elif agnostic.board == "pyboard": + from board import pyboard + default_pin = pyboard.X1 + led_pin = board.pyboard.LED_BLUE + led_hardwired = True + led_inverted = False