How to Use Joystick_HW504 With "skiiiD"

Introduction: How to Use Joystick_HW504 With "skiiiD"

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

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

Step 1: Launch SkiiiD and Select Arduino UNO

#1 Launch skiiiD and select New button

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

Step 2: Add Joystick Component

#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

Step 3: Four Functions of Joystick

#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.

Be the First to Share

    Recommendations

    • Battery Powered Contest

      Battery Powered Contest
    • Plywood Challenge

      Plywood Challenge
    • Plastic Contest

      Plastic Contest

    Discussions