import RPi.GPIO as GPIO import time gpio1=13 #donc led+résistance entre la broche 33 (+) et 34 (-) gpio2=19 #donc led+résistance entre la broche 35 (+) et 39 (-) on=True GPIO.setmode(GPIO.BCM) GPIO.setup(gpio1, GPIO.OUT) GPIO.setup(gpio2, GPIO.OUT) try: while True: GPIO.output(gpio1, on) on=not on GPIO.output(gpio2, on) time.sleep(.2) except KeyboardInterrupt: GPIO.cleanup()