Write the code to complete the task. Technical Requirements:
Wire the joystick so that up/down is connected to one analog in pin, and left/right connected to another. Wire the click to a digital pin.
Make an arrangement of four LEDs representing up, down, left, and right and connect each to a PWM capable pin.
LEDs are off when the joystick is centered, but as you push in a direction, have the LED corresponding to that direction glow brighter and brighter. For example, if you push the joystick halfway up, have the “up” LED glow at half brightness.
When the user clicks the joystick, flash all four LEDs.