Cov txheej txheem:

Khawm rau Nas Scroll: 5 Kauj Ruam
Khawm rau Nas Scroll: 5 Kauj Ruam

Video: Khawm rau Nas Scroll: 5 Kauj Ruam

Video: Khawm rau Nas Scroll: 5 Kauj Ruam
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Kaum ib hlis
Anonim
Khawm rau Nas Scroll
Khawm rau Nas Scroll

Kuv tau muaj ob peb lub computer nas ntau xyoo thiab lub log log yog ib yam uas tas li tsis ua haujlwm lossis ua haujlwm tsis raug.

Kuv tau zam qhov feem ntau siv cov ntawv xaiv kom txog rau thaum nyuam qhuav thaum kuv txiav txim siab muab cov duab pob Blender sim, ntawm no kuv pom tias kuv mus tsis tau yog tsis siv lub khawm txav raws li nws tau siv los nthuav thiab tawm ntawm thaj chaw saib.

Tau ua si ib puag ncig nrog 32U4 Pro Micro cov laug cam li cov keyboard thiab nas nkag kuv tau txaus siab pom yog tias muaj qhov xaiv xaiv raws li qhov no tsis yog qee yam kuv tau pom siv.

Txheeb xyuas Arduino cov ntaub ntawv [1] pom tias muaj tus lej nqis hauv Mouse.move () muaj nuj nqi -> Mouse.move (xVal, yVal, log).

Kuv xav tias yog tsis hloov lub log kuv tuaj yeem siv lub laub ntawm lub pob kom ua txhua qhov nce ntxiv thiab, tom qab sim, pom tias kuv tuaj yeem ua tau.

Kauj ruam 1: Kho vajtse:

1* 32U4 Pro Micro clone

2* 6mm square momentary pushbuttons

1* Stripboard 24* 37

2* 12 txoj hauv kev 0.1 nti qhov nyob - rau Pro Micro

Kauj Ruam 2: Kev tsim kho;

Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho

Kuv tsim thiab tsim lub rooj tsav xwm me kom tuav tag nrho cov khoom siv.

Pro Micro tau txuas rau hauv 2* 12 txoj hauv kev 0.1 nti qhov nyob thiab muaj qhov txuas me me rau cov hloov pauv thiab kev sib txuas hauv av (6 xov hlau). Txhua 13 txoj kev sib tsoo 12 ntawm qhov uas nyob nruab nrab ntawm Pro Micro pins thiab lwm qhov ntxiv mus rau ib qho ntawm cov keyboards. Kev sib txuas rau PC yog ntawm USB txuas ntawm Pro Micro.

Kuv tau ntsaws 2*12 txoj kev ntsaws rau hauv qhov micro kom ruaj ntseg thiab tom qab ntawd muab tshuaj txhuam rau hauv cov ces kaum ua ntej ua ntej siv qhov seem. Tom qab ntawd kuv tau siv cov khawm thiab ua qhov thaiv. Thaum kawg kuv muab tso rau hauv kev tawg.

Kauj ruam 3: Software:

Kuv tau sau cov software thiab programmed Pro Micro siv Arduino IDE.

Rau lub hom phiaj phiaj xwm Pro Micro qhia tau zoo li Arduino Leonardo.

Lub software siv lub sijhawm cuam tshuam rau kev xaiv tsa thiab nthuav tawm cov nyees khawm, thaum lub pob raug nias, lossis ntau dua raug nias ces tso Mouse. Move () muaj nuj nqi hu ua xa tus nqi scroll mus rau PC txuas.

Kuv pom tsis muaj cov ntaub ntawv hais txog tus nqi dab tsi los siv yog li sim 1 uas muab qhov nce ntxiv thiab tom qab ntawd -1 uas muab qhov tsis zoo nce ntxiv; cov ntaub ntawv tshwj xeeb teev tus nqi scroll raws li kos npe kos.

Kauj ruam 4: Siv:

Chav tsev tsuas yog ntsaws thiab ua si, nws pom tau tias yog HID ntaus ntawv rau lub PC thiab tsis muaj tus tsav tsheb los teeb tsa.

Kauj Ruam 5: Cov Lus Qhia:

[1] Arduino USB Mouse cov ntaub ntawv https://www.arduino.cc/reference/en/language/functions/usb/mouse/mousemove/ (Retrieved 6/July/2019)

Pom zoo: