From 367c82b41e27372dfe4fa8ea9f9b8699e37bb1ee Mon Sep 17 00:00:00 2001 From: Cefn Hoile Date: Sun, 18 Feb 2018 20:19:26 +0000 Subject: [PATCH] Board oriented test fixture parameters --- python/testing/board/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 python/testing/board/__init__.py 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 -- 2.49.0