Linting, added comment
# CircuitPython IO demo #1 - General Purpose I/O
+import time
from digitalio import DigitalInOut, Direction, Pull
import board
-import time
led = DigitalInOut(board.D13)
led.direction = Direction.OUTPUT
@@ -16,6 +16,7 @@ switch.pull = Pull.DOWN # For Gemma M0, Trinket M0, Metro M0 Exp, ItsyBitsy M0
while True:
+ # We could also just do "led.value = not button.value" !
if switch.value:
led.value = False
else:
