From 152a78278903e74ea1332ffb23033f7c91eeb62a Mon Sep 17 00:00:00 2001 From: Cefn Hoile Date: Sun, 18 Feb 2018 01:26:09 +0000 Subject: [PATCH] Platform-dependent routine to get hardware test fixtures --- python/testing/platform/mcp/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 python/testing/platform/mcp/__init__.py diff --git a/python/testing/platform/mcp/__init__.py b/python/testing/platform/mcp/__init__.py new file mode 100644 index 0000000..dbc1e6c --- /dev/null +++ b/python/testing/platform/mcp/__init__.py @@ -0,0 +1,8 @@ +def create_pin(): + from microcontroller import Pin + name, pin = next(Pin.iteritems()) # grab first pin + return pin + +def create_dio(): + import digitalio + return digitalio.DigitalInOut(create_pin()) \ No newline at end of file -- 2.49.0