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

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:

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
Related Projects & Tutorials
evive TFT Display
How to Manipulate evive’s TFT Display
This tutorial discuss evive's TFT Display, the blocks under evive TFT Display extension, and certain example programs to show the usage of different blocks in Scratch mode.
All articles loaded
No more articles to load
Featured Projects
All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart