Datasheet
Try testing the slide switch instead of the buttons. For the slide switch you need to use Pull.UP instead of Pull.DOWN.
Hints:
switch = DigitalInOut(board.SLIDE_SWITCH)switch = DigitalInOut(board.SLIDE_SWITCH)
switch = DigitalInOut(board.SLIDE_SWITCH)
switch.direction = Direction.INPUTswitch.direction = Direction.INPUT
switch.direction = Direction.INPUT
switch.pull = Pull.UPswitch.pull = Pull.UP
switch.pull = Pull.UP
if switch.value is True: # switch is slid to the leftif switch.value is True: # switch is slid to the left
if switch.value is True: # switch is slid to the left
© Adafruit Industries https://learn.adafruit.com/adafruit-circuit-playground-express Page 97 of 211










