Reading the joystick

joystick

 

    1. Create variables
    2. Set up in void setup()
      • Serial.begin(9600);
      • set up your 2 analog input pins as input
    3. Read the up/down and left/right values and display them to the screen
      • in void loop()
      • read the inputs using analogRead
      • print the state of the inputs using Serial.print. See below for additional printing information

print