Very Old XIAO- before SAM21

Welcome

Obviously you would need code running that initializes the port(s) and tell them what you want them to do…