from machine import Pin
from time import sleep
# Define the LED pin
ledR = Pin(4, Pin.OUT) # Use correct gpio
# Blink the LED in a loop
while True:
ledR.value(0) # Turn the LEDR depend on inputR
sleep(1)
ledR.value(1) # Turn the LEDG depend on inputG
sleep(1)