Components Required

Image Component Quantity Available in Kit
evive 1
USB A-B Cable 1

Introduction

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.

Joystick or 5-way Navigation Key

The table provide you the corresponding values for directions:

Direction Analog value range
Up 205-215
Right 405-415
Down 605-615
Left 835-845

Example

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: