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
Programming Platform:
Difficulty:
Estimated Time (hrs):
2

Components Required

ImageComponentQuantityAvailable in Kit
evive1
USB A-B Cable1

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:

DIRECTIONANALOG VALUE RANGE
Up205-215
Right405-415
Down605-615
Left835-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
Share this Tutorial
Facebook
Twitter
Google+
Pinterest
Reddit
Print
Related Tutorials
Featured Projects

Leave a Reply

Close Menu
×

Cart