]> Repositories - hackapet/Adafruit_Blinka.git/blobdiff - python/testing/board/__init__.py
Update index.md
[hackapet/Adafruit_Blinka.git] / python / testing / board / __init__.py
index 47fb847894750cacada91f6d64aaf72f2d807553..a961969657df2e9a8439e2ba420f3e9a27b72908 100644 (file)
@@ -2,10 +2,20 @@
 import agnostic
 import board
 if agnostic.board == "feather_m0_express":
-    default_pin = board.D5
-    led_pin = board.D13
-    pin_count = 38
+    from board import feather_m0_express
+    default_pin = feather_m0_express.D5
+    led_pin = feather_m0_express.D13
+    led_hardwired = True
+    led_inverted = False
 elif agnostic.board == "feather_huzzah":
-    default_pin = board.GPIO4
-    led_pin = board.GPIO2
-    pin_count = 10
+    from board import feather_huzzah
+    default_pin = feather_huzzah.GPIO4
+    led_pin = feather_huzzah.GPIO0 # red led
+    led_hardwired = True
+    led_inverted = False
+elif agnostic.board == "pyboard":
+    from board import pyboard
+    default_pin = pyboard.X1
+    led_pin = board.pyboard.LED_BLUE
+    led_hardwired = True
+    led_inverted = False