From: Cefn Hoile Date: Sun, 18 Feb 2018 20:19:26 +0000 (+0000) Subject: Board oriented test fixture parameters X-Git-Tag: 0.1.0~4^2~115 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/367c82b41e27372dfe4fa8ea9f9b8699e37bb1ee Board oriented test fixture parameters --- diff --git a/python/testing/board/__init__.py b/python/testing/board/__init__.py new file mode 100644 index 0000000..47fb847 --- /dev/null +++ b/python/testing/board/__init__.py @@ -0,0 +1,11 @@ +"""Configuration of testing fixtures depending on the board layout""" +import agnostic +import board +if agnostic.board == "feather_m0_express": + default_pin = board.D5 + led_pin = board.D13 + pin_count = 38 +elif agnostic.board == "feather_huzzah": + default_pin = board.GPIO4 + led_pin = board.GPIO2 + pin_count = 10