from machine import Pin from time import sleep r1 = Pin() while True: r1.on() sleep(1) r1.off() sleep(1)