How to write programs for a custom SAMD21 board using Arduino IDE

Thank you very much @MartinL, I will test your solution and let you know.