]> Repositories - Adafruit_Blinka-hackapet.git/blob - test/src/testing/board/__init__.py
0732f78b4954c69486ea33d27b6bb80e7a9440f9
[Adafruit_Blinka-hackapet.git] / test / src / testing / board / __init__.py
1 """Configuration of testing fixtures depending on the board layout"""
2 from adafruit_blinka import agnostic
3
4 if agnostic.board == "feather_m0_express":
5     default_pin = feather_m0_express.D5
6     led_pin = feather_m0_express.D13
7     led_hardwired = True
8     led_inverted = False
9 elif agnostic.board == "feather_huzzah":
10     from adafruit_blinka.board import feather_huzzah
11
12     default_pin = feather_huzzah.GPIO4
13     led_pin = feather_huzzah.GPIO0 # red led
14     led_hardwired = True
15     led_inverted = True
16 elif agnostic.board == "pyboard":
17     default_pin = pyboard.X1
18     led_pin = adafruit_blinka.board.pyboard.LED_BLUE
19     led_hardwired = True
20     led_inverted = False
21 else:
22     raise NotImplementedError("Board not supported")