from machine import Pin,UART
uart = UART(0,9600)
L1=Pin(2,Pin.OUT)
L2=Pin(3,Pin.OUT)
while True:
   if uart.any():
         command = uart.readline()
         print(command)
         if(command=='L10'):
              L1.value(1)
         elif (command=='L1F'): 
              L1.value(0)
         elif (command=='L20'):
              L2.value(1)
         elif (command=='L2F'):
              L2.value(0)
         else:
              L2.value(0)
              L1.value(0)
              
              
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT