from machine import Pin
from time import sleep
relay = Pin(4,Pin.OUT)
while True:
#relay on (using low signal tp let the current flow)
relay.value(0)
sleep(1)
#relay off (using high signal to stop the current flow)
relay.value(1)
sleep(1)
esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23
led1:A
led1:C
relay1:VCC
relay1:GND
relay1:IN
relay1:NC
relay1:COM
relay1:NO
vcc1:VCC
gnd1:GND
vcc2:VCC