from machine import Pin
from time import sleep
b=Pin(0,Pin.OUT)
while True:
b.on()
print("relay on")
sleep(1)
b.off()
print("relay off")
sleep(1)
from machine import Pin
from time import sleep
b=Pin(0,Pin.OUT)
while True:
b.on()
print("relay on")
sleep(1)
b.off()
print("relay off")
sleep(1)