]> Repositories - Adafruit_Blinka-hackapet.git/blob - python/testing/board/__init__.py
Added support for pyboard and future support for inverted LED
[Adafruit_Blinka-hackapet.git] / python / testing / board / __init__.py
1 """Configuration of testing fixtures depending on the board layout"""
2 import agnostic
3 import board
4 if agnostic.board == "feather_m0_express":
5     from board import feather_m0_express
6     default_pin = feather_m0_express.D5
7     led_pin = feather_m0_express.D13
8     led_hardwired = True
9     led_inverted = False
10 elif agnostic.board == "feather_huzzah":
11     from board import feather_huzzah
12     default_pin = feather_huzzah.GPIO4
13     led_pin = feather_huzzah.GPIO0 # red led
14     led_hardwired = True
15     led_inverted = False
16 elif agnostic.board == "pyboard":
17     from board import pyboard
18     default_pin = pyboard.X1
19     led_pin = board.pyboard.LED_BLUE
20     led_hardwired = True
21     led_inverted = False