from machine import*
from time import*
sleep(0.1) # Wait for USB to become ready
PIR=Pin(10,Pin.IN)
LED=Pin(0,Pin.OUT)
while True:
if PIR.value()==0:
LED.value(0)
else:
LED.value(1)
from machine import*
from time import*
sleep(0.1) # Wait for USB to become ready
PIR=Pin(10,Pin.IN)
LED=Pin(0,Pin.OUT)
while True:
if PIR.value()==0:
LED.value(0)
else:
LED.value(1)