User Manual

78
GPIO.output(led2Pin, GPIO.LOW)
GPIO.output(led1Pin, GPIO.HIGH)
Now pull the slide, and you can see the two LEDs light up alternately.
SunFounder