]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Board oriented test fixture parameters
authorCefn Hoile <github.com@cefn.com>
Sun, 18 Feb 2018 20:19:26 +0000 (20:19 +0000)
committerCefn Hoile <github.com@cefn.com>
Sun, 18 Feb 2018 20:19:26 +0000 (20:19 +0000)
python/testing/board/__init__.py [new file with mode: 0644]

diff --git a/python/testing/board/__init__.py b/python/testing/board/__init__.py
new file mode 100644 (file)
index 0000000..47fb847
--- /dev/null
@@ -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