import machine
# import RPi.GPIO as GPIO
import time
pin=machine.Pin(18,machine.Pin.OUT)
# GPIO.setmode(GPIO.BCM)
# GPIO.setup(18,GPIO.OUT)
while True:
pin.value(1)
time.sleep(2)
# GPIO.output(18,False)
pin.value(0)
time.sleep(2)
import machine
# import RPi.GPIO as GPIO
import time
pin=machine.Pin(18,machine.Pin.OUT)
# GPIO.setmode(GPIO.BCM)
# GPIO.setup(18,GPIO.OUT)
while True:
pin.value(1)
time.sleep(2)
# GPIO.output(18,False)
pin.value(0)
time.sleep(2)