This is my first writing of arduino code and I'd like to know how well I've done. The program is used to do two things:1. fade one LED up and down in brightness.2. Change the color of a multi color led from green to red.This is to be loaded onto an arduino nano and more will likely be added.Please tell me whether it is done correct or any tendencies that could compromise my coding at a more advanced level.

Here's the modified code, the color change is working now but the fading LED just stays solid, it stays at a certain brightness depending on the value of fadeamount.Edit: I forgot to put a delay, it's all working now.