]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - python/testing/board/__init__.py
Fail hard when board cannot be determined. Feather Huzzah Red LED is inverted. Typo...
[Adafruit_Blinka-hackapet.git] / python / testing / board / __init__.py
index a961969657df2e9a8439e2ba420f3e9a27b72908..c38abc6e23c34f180a6a8be549901f6f3885f274 100644 (file)
@@ -12,10 +12,12 @@ elif agnostic.board == "feather_huzzah":
     default_pin = feather_huzzah.GPIO4
     led_pin = feather_huzzah.GPIO0 # red led
     led_hardwired = True
     default_pin = feather_huzzah.GPIO4
     led_pin = feather_huzzah.GPIO0 # red led
     led_hardwired = True
-    led_inverted = False
+    led_inverted = True
 elif agnostic.board == "pyboard":
     from board import pyboard
     default_pin = pyboard.X1
     led_pin = board.pyboard.LED_BLUE
     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
+else:
+    raise NotImplementedError("Board not supported")