Welcome aboard @Nexus04
I’m not sure if you are aware, but there are a plethora of code for pretty much anything on the Arduino site and GitHub.
If you’re a good programmer, you can simply alter some parameters to make the code do exactly what you want rather than starting from scratch.