I don't know if there is something special in my code that I need to do, but so far this is the code I have for it.
- Code: Select all | TOGGLE FULL SIZE
start_stop_home = DigitalInOut(board.D11)
start_stop_home.direction = Direction.INPUT
start_stop_home.pull = Pull.UP
start_stop_away = DigitalInOut(board.D12)
start_stop_away.direction = Direction.INPUT
start_stop_away.pull = Pull.UP
start_stop_away_state = False
start_stop_home_state = False
But the LED remains on even with the False state.
There is a chance I have it wired incorrectly. I have the buttons hooked up to Digital In 11 & 12. Then I have the LED's hooked up to 5V port. Both running to respected grounds. Tried looking up how some of the projects with these buttons have them set up code wise, but there isn't really much out there on how to get the LED's working responsively.
Thanks in advance