Introduction

evive has an inbuilt 5-way navigation key, which is used to navigate through evive menu based system. The navigational key has 4 directions:

  • Left
  • Right
  • Up
  • Down.

This information is provided by the analog pin A11.

The 5th direction is centre-pressThe centre 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 below shows the values for their corresponding 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.

Below is the Arduino sketch:

This Helped
This didn't help
Close Menu
×
×

Cart

STEMpedia Starter Package is now on Indiegogo!
Get 41% OFF with Super Early Bird discounts!
x