How to use evive’s Joystick (Navigation Key)

About This Tutorial
This tutorial discusses how to work with evive’s 5-way navigation key and how to read its state and display on the TFT screen with the help of an Arduino IDE sketch.
Tutorial Info

Components Required

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

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:

[tutorialRelatedProjects]
Share this Tutorial
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Featured Projects
All articles loaded
No more articles to load

Leave a Reply