]> Repositories - Adafruit_Blinka-hackapet.git/blob - python/testing/platform/mcp/__init__.py
Now everything is embedded by default, with only testing.mcp being pure-pthon tests...
[Adafruit_Blinka-hackapet.git] / python / testing / platform / mcp / __init__.py
1 def create_pin():
2     from microcontroller import Pin
3     name, pin = next(Pin.iteritems())  # grab first pin
4     return pin
5
6 def create_dio():
7     import digitalio
8     return digitalio.DigitalInOut(create_pin())