]> Repositories - Adafruit_Blinka-hackapet.git/blob - test/src/testing/board/__init__.py
03f6f31a30b2ab8dcbe94359fbb6c89d2a020f68
[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 import board
5
6 if agnostic.board == "feather_m0_express":
7     default_pin = board.D5
8     led_pin = board.D13
9     led_hardwired = True
10     led_inverted = False
11 elif agnostic.board == "feather_huzzah":
12     default_pin = board.GPIO4
13     led_pin = board.GPIO0 # red led
14     led_hardwired = True
15     led_inverted = True
16 elif agnostic.board == "pyboard":
17     default_pin = board.X1
18     led_pin = board.LED_BLUE
19     led_hardwired = True
20     led_inverted = False
21     uartTxId = "B6"
22     uartRXId = "B7"
23 else:
24     raise NotImplementedError("Board not supported")