[Solved] Attack3 Joystick buttons to turn on LEDs on Arduino?

Thank you Richard,
As is I said before, I’m new and still learning to code so please bear with me, for this part:

I couldn’t understand, how to achieve such a thing? I mean could you please give me a code example to do it in a better and more proper manner?

please note that If I decrease the delay the servo either won’t fully turn left and right or It will jerk in its place without even turning!