Using a simple setup involving a joystick, an LED, a beeper, and a positional servo, first write a set of functions as follow:

Once you have completed the above functions, write code in the main loop to choose which function to call:

Notice that the above directions allow for overlap. For example, if the joystick is left and up, the LED should blink and the servo should wiggle.

The most important part of this assignment is learning about functions on how they work. If you make the Arduino do the task we've asked without using functions, you've missed the point!

Be prepared to demonstrate your creation, and submit your code via Moodle.