These are ports of Elegoo's Arduino Projects into uSwift, a project that runs a subset of Swift on Arduino microcontrollers
Link to Swift for Arduino's Project page: https://github.com/swiftforarduino/community
These are ports from Elegoo's "THE MOST COMPLETE STARTER KIT TUTORIAL FOR MEGA 2560" being run on an Arduino Uno
link to elegoo's product page: https://www.elegoo.com/product/elegoo-mega-2560-project-the-most-complete-starter-kit/
link to tutorial and source code: https://www.elegoo.com/tutorial/Elegoo%20The%20Most%20Complete%20Starter%20Kit%20for%20MEGA%20V1.0.2020.3.11.zip
Feel free to do whatever you want with this code. I hope it helps you. I'm still learning this stuff so there certainly may be bugs or bad design choices.