Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Make Mouse
Search
kunou
June 09, 2017
Technology
0
630
Make Mouse
kunou
June 09, 2017
Tweet
Share
More Decks by kunou
See All by kunou
GANについて
kunou
0
420
AIか何かについて.pdf
kunou
0
30
Pythonを書いていておーマジかーと感じたあれこれ
kunou
1
720
ネットワークグラフを作成する
kunou
0
47
Rubyで機械学習してみた
kunou
1
1.1k
ZIP!!
kunou
0
170
zip
kunou
0
500
RubyのProcのあれをこうしました
kunou
0
92
esm lt Clojure like threading macro
kunou
0
420
Other Decks in Technology
See All in Technology
Terraform Stacks入門 #HashiTalks
msato
0
360
ドメイン名の終活について - JPAAWG 7th -
mikit
33
20k
開発生産性を上げながらビジネスも30倍成長させてきたチームの姿
kamina_zzz
2
1.7k
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
440
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
2
610
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
VideoMamba: State Space Model for Efficient Video Understanding
chou500
0
190
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
110
Engineer Career Talk
lycorp_recruit_jp
0
180
B2B SaaSから見た最近のC#/.NETの進化
sansantech
PRO
0
850
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.1k
Zennのパフォーマンスモニタリングでやっていること
ryosukeigarashi
0
100
Featured
See All Featured
The Invisible Side of Design
smashingmag
298
50k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
A designer walks into a library…
pauljervisheath
204
24k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Ruby is Unlike a Banana
tanoku
97
11k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Transcript
Mouseを作る 09.06.2017 esm_LT#03
kunou ITSํ໘͔Βདྷ·ͨ͠
DEMO
☓ Mouse ◯ Pointing Stick
Mouse. ίʔυͷઆ໌
ίʔυͷઆ໌ Mouse.move Syntax Mouse.move(xVal, yPos, wheel); Parameters xVal: amount to
move along the x-axis - signed char yVal: amount to move along the y-axis - signed char wheel: amount to move scroll wheel - signed char https://www.arduino.cc/en/Reference/MouseMove
ίʔυͷઆ໌ Mouse.press Syntax Mouse.press(); Mouse.press(button); Parameters button: which mouse button
to press - char MOUSE_LEFT (default) MOUSE_RIGHT MOUSE_MIDDLE https://www.arduino.cc/en/Reference/MousePress
ίʔυͷઆ໌ Mouse.release Syntax Mouse.release(); Mouse.release(button); Parameters button: which mouse button
to press - char MOUSE_LEFT (default) MOUSE_RIGHT MOUSE_MIDDLE https://www.arduino.cc/en/Reference/MouseRelease
Board ػࡐͷઆ໌
ػࡐͷઆ໌ Board ▸ PM32U4 http://www.aitendo.com/product/12196
ػࡐͷઆ໌ Board ▸ PM32U4 http://www.aitendo.com/product/12196 Aitendo PM32U4
ػࡐͷઆ໌ Board ▸ PM32U4 http://www.aitendo.com/product/12196 Aitendo PM32U4 SparkFun Pro Micro
- 5V/16MHz ޓ
ػࡐͷઆ໌ Board ▸ PM32U4 http://www.aitendo.com/product/12196 Aitendo PM32U4 SparkFun Pro Micro
- 5V/16MHz ʲArduino७ਖ਼ʳ Arduino Leonardo ޓ ޓ
ػࡐͷઆ໌ Board ▸ PM32U4 http://www.aitendo.com/product/12196 Aitendo PM32U4 SparkFun Pro Micro
- 5V/16MHz ʲArduino७ਖ਼ʳ Arduino Leonardo ¥ 3,000(くらい) ޓ ޓ
ػࡐͷઆ໌ Board ▸ PM32U4 http://www.aitendo.com/product/12196 Aitendo PM32U4 SparkFun Pro Micro
- 5V/16MHz $ 19.95 ʲArduino७ਖ਼ʳ Arduino Leonardo ¥ 3,000(くらい) ޓ ޓ
ػࡐͷઆ໌ Board ▸ PM32U4 http://www.aitendo.com/product/12196 Aitendo PM32U4 SparkFun Pro Micro
- 5V/16MHz $ 19.95 ʲArduino७ਖ਼ʳ Arduino Leonardo ¥ 3,000(くらい) ¥ 700 ޓ ޓ
ػࡐͷઆ໌ Board ▸ PM32U4 http://www.aitendo.com/product/12196 Aitendo PM32U4 SparkFun Pro Micro
- 5V/16MHz $ 19.95 ʲArduino७ਖ਼ʳ Arduino Leonardo ¥ 3,000(くらい) ¥ 700 ޓ ޓ ͍҆ʂ
JoyStick ػࡐͷઆ໌
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426 !?
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426 つまり…
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426 ͜Ε
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426 どっち向きの時の話なの…?
ػࡐͷઆ໌ JoyStick ▸ Thumb Slide JoyStick https://www.sparkfun.com/products/9426 ☓ ̋
Button ػࡐͷઆ໌
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ 押しご心地がマウスっぽい!
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ 押しご心地がマウスっぽい! ついでにLEDもついてる
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ 裏 面
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ スイッチのピン
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ スイッチのピン LEDのピン?
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ スイッチのピン LEDのピン? ???
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ スイッチのピン LEDのピン? ???
LEDの+はどこ?
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ 正解はこれ
ػࡐͷઆ໌ Button ▸ MP86A1W1H-G (& MP86A1GN3H-G) http://akizukidenshi.com/catalog/g/gP-02008/ この+は何なの…?
Cable ػࡐͷઆ໌
ػࡐͷઆ໌ Cable ▸ ϊʔϒϥϯυ RJ45 έʔϒϧ (CAT6ରԠ) registered jack (ϨδελʔυɾδϟοΫɺRJ)
௨৴༻ίω Ϋλͷن֨ͷҰͭɻถ࿈௨৴ҕһձʹొ͞ΕͨͷΛݴ͍ɺ RJ-11ɾRJ-9ɾRJ-14ɾRJ-25ɾRJ-48ɾRJ-61ɾRJ-45ͳͲ͕ ͋Δɻ
ػࡐͷઆ໌ Cable ▸ ϊʔϒϥϯυ RJ45 έʔϒϧ (CAT6ରԠ) registered jack (ϨδελʔυɾδϟοΫɺRJ)
௨৴༻ίω Ϋλͷن֨ͷҰͭɻถ࿈௨৴ҕһձʹొ͞ΕͨͷΛݴ͍ɺ RJ-11ɾRJ-9ɾRJ-14ɾRJ-25ɾRJ-48ɾRJ-61ɾRJ-45ͳͲ͕ ͋Δɻ 要 す る に LANケ ー ブ ル !
ػࡐͷઆ໌ Cable ▸ ϊʔϒϥϯυ RJ45 έʔϒϧ (CAT6ରԠ) LANέʔϒϧϚγϯΛΠʔαωοτʹܨ͙ͷͩͱࢥ͍ͬͯ ·ͤΜ͔ʁ
ػࡐͷઆ໌ Cable ▸ ϊʔϒϥϯυ RJ45 έʔϒϧ (CAT6ରԠ) LANέʔϒϧϚγϯΛΠʔαωοτʹܨ͙ͷͩͱࢥ͍ͬͯ ·ͤΜ͔ʁ Wifi͕͑Εෆཁͩͱࢥ͍ͬͯ·ͤΜ͔ʁ
ػࡐͷઆ໌ Cable ▸ ϊʔϒϥϯυ RJ45 έʔϒϧ (CAT6ରԠ) LANέʔϒϧϚγϯΛΠʔαωοτʹܨ͙ͷͩͱࢥ͍ͬͯ ·ͤΜ͔ʁ Wifi͕͑ΕLANέʔϒϧෆཁͩͱࢥ͍ͬͯ·͔͢ʁ
ͦΕΛͯ͢ ΔͳΜͯͱ ΜͰͳ͍!
ػࡐͷઆ໌ Cable ▸ LANέʔϒϧ෦ʹ̔ຊͷઢ͕௨͍ͬͯͯɺͦͷҰຊҰຊ ʹΞφϩά৴߸Λ௨͢͜ͱ͕ग़དྷ·͢ɻ ▸ ͳͷͰɺϘʔυͱηϯαʔεΠονΛܨ͙ࡍʹ͑·͢ʂ
·ͱΊ まとめ ▸ ArduinoʢޓػʣΛ͏ͱɺ(ׂΓͱ)؆୯ʹϚε͕࡞Ε ·͢ɻ ▸ ؤுΕΩʔϘʔυ࡞Ε·͢ɻ ▸ LANέʔϒϧศར