How to Use Joystick_HW504 With "skiiiD"

by skiiiD in Circuits > Arduino

604 Views, 1 Favorites, 0 Comments

How to Use Joystick_HW504 With "skiiiD"

skiiiD - Easiest way to code Joystick HW504 on Arduino.

Before start, there is a basic tutorial for how to use skiiiD

https://www.instructables.com/id/Getting-Started-With-SkiiiD-Editor/

Launch SkiiiD and Select Arduino UNO

1.jpg
2.jpg

#1 Launch skiiiD and select New button

#2 Select ①Arduino Uno and then click ②OK button

Add Joystick Component

3.jpg
4.jpg

#1 Click '+' ADD button to search and select component

#2 ① search Joystick on search bar and ②Click Joystick Module,

#3 then you can see ③ pin indication. (You can configure it.) #4 ④ click ADD button

Four Functions of Joystick

5.jpg
6.jpg

#1 Original skiiID library provides 4 functions

1) getHorizontalData - Indicates Horizontal position of Joystick Module as the numeric value (range : 1~10) .

EX) If Joystick is on the far left position, it will be 1 on the serial monitor, vice versa.

2) getVerticalData - Indicates Vertical position of Joystick Module as the numeric value (range : 1~10) .

EX) If Joystick is on the far down position, it will be 1 on the serial monitor, vice versa.

3) getPosition - Indicates position of Joystick Module as the numeric value(see picture on right)

4) isClicked - Indicates states of Joystick is clicked or not.