-
1Launch skiiiD and select Arduino UNO
#1 Launch skiiiD and select New button
#2 Select ①Arduino Uno and then click ②OK button
-
2Add 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
-
3Four 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 below)
4) isClicked - Indicates states of joystick is clicked or not.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.