evive has inbuilt 5-way navigation key, which is used to navigate in evive menu based system. The navigational key have 4 directions: left, right, up and down. This information is provided by the analog pin A11.
The center switch is connected to the digital pin 19 in active high mode. This means that if the switch is pressed, then pin 19 is high, otherwise the pin is LOW.
The table provide you the corresponding values for directions:
In this example we will read the state of the 5-way navigation key and display it on the TFT Screen. Given below is the Arduino sketch: