from board.nodemcu import *
elif board == "pyboard":
from board.pyboard import *
+else:
+ raise NotImplementedError("Board not supported")
\ No newline at end of file
from microcontroller.esp8266 import pin
elif agnostic.microcontroller == "stm32":
from microcontroller.stm32 import pin
+else:
+ raise NotImplementedError("Microcontroller not supported")
\ No newline at end of file
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
+else:
+ raise NotImplementedError("Board not supported")
print()
print(e)
return # test trivially passed
- if yes_no("Is Button wired to {} to GND".format(default_pin)):
+ if yes_no("Is Button wired from {} to GND".format(default_pin)):
self.assertTrue(button.value == 1)
self.assertTrue(await_true("button pressed", lambda: button.value == 0))
elif microcontroller == "samd21":
pin_count = 38
else:
- raise NotImplementedError
\ No newline at end of file
+ raise NotImplementedError("Microcontroller not supported")