Cov txheej txheem:

Yuav Siv Joystick_HW504 Nrog "skiiiD": 3 Kauj Ruam
Yuav Siv Joystick_HW504 Nrog "skiiiD": 3 Kauj Ruam

Video: Yuav Siv Joystick_HW504 Nrog "skiiiD": 3 Kauj Ruam

Video: Yuav Siv Joystick_HW504 Nrog
Video: Yog Koj Ua Pa Tsw Tsw Phem Ces Siv Yam Tshuaj No 29/02/2020 2024, Kaum ib hlis
Anonim
Image
Image

Ua ntej pib, muaj cov lus qhia yooj yim rau kev siv skiiiD

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

Kauj ruam 1: Tua tawm SkiiiD thiab Xaiv Arduino UNO

Tua tawm SkiiiD thiab Xaiv Arduino UNO
Tua tawm SkiiiD thiab Xaiv Arduino UNO

#1 Tua tawm skiiiD thiab xaiv khawm tshiab

#2 Xaiv ①Arduino Uno thiab tom qab ntawd nyem buttonOK khawm

Kauj Ruam 2: Ntxiv Joystick Cheebtsam

Ntxiv Joystick Cheebtsam
Ntxiv Joystick Cheebtsam
Ntxiv Joystick Cheebtsam
Ntxiv Joystick Cheebtsam

#1 Nyem '+' ADD khawm txhawm rau tshawb nrhiav thiab xaiv cov khoom

#2 ① tshawb nrhiav Joystick ntawm kab tshawb thiab ick Nyem Joystick Module, #3 ces koj tuaj yeem pom ③ tus lej cim. (Koj tuaj yeem teeb tsa nws.) #4 ④ nyem ADD khawm

Kauj Ruam 3: Plaub Txoj Haujlwm ntawm Joystick

Plaub Txoj Haujlwm ntawm Joystick
Plaub Txoj Haujlwm ntawm Joystick
Plaub Txoj Haujlwm ntawm Joystick
Plaub Txoj Haujlwm ntawm Joystick

#1 Thawj lub tsev qiv ntawv skiiID muab 4 txoj haujlwm

1) getHorizontalData - Qhia txog txoj haujlwm kab rov tav ntawm Joystick Module raws li tus lej lej (thaj tsam: 1 ~ 10).

EX) Yog tias Joystick nyob ntawm txoj haujlwm sab laug, nws yuav yog 1 ntawm tus lej saib, hloov pauv.

2) getVerticalData - Qhia txog txoj haujlwm ntsug ntawm Joystick Module raws li tus lej lej (thaj tsam: 1 ~ 10).

EX) Yog tias Joystick nyob ntawm txoj haujlwm qis, nws yuav yog 1 ntawm tus lej saib, hloov pauv.

3) getPosition - Qhia txog txoj haujlwm ntawm Joystick Module raws li tus lej lej (saib daim duab ntawm sab xis)

4) isClicked - Qhia cov xeev ntawm Joystick tau nyem lossis tsis yog.

Pom zoo: