XIAO ESP32S3 + Micropython + User LED

Here is a code snippet using Pin 21:

from machine import Pin

Pin(21, Pin.OUT) # turn on the User LED
Pin(21, Pin.IN) # turn off the User LED