]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
led_hardwired flag to skip interactive questioning about wiring LEDs
authorCefn Hoile <github.com@cefn.com>
Mon, 19 Feb 2018 14:05:08 +0000 (14:05 +0000)
committerCefn Hoile <github.com@cefn.com>
Mon, 19 Feb 2018 14:05:08 +0000 (14:05 +0000)
python/testing/board/__init__.py

index 7852ea6419a71afc56e4eb9c963694bfb766a227..d05c2226405b596ef207c4c20f15049ee8ea4106 100644 (file)
@@ -4,6 +4,11 @@ import board
 if agnostic.board == "feather_m0_express":
     default_pin = board.D5
     led_pin = board.D13
+    led_hardwired = True
 elif agnostic.board == "feather_huzzah":
     default_pin = board.GPIO4
     led_pin = board.GPIO2
+    led_hardwired = True
+    pull_down_support = False
+elif agnostic.board == "pyboard":
+    raise NotImplementedError