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
430
AIか何かについて.pdf
kunou
0
32
Pythonを書いていておーマジかーと感じたあれこれ
kunou
1
720
ネットワークグラフを作成する
kunou
0
49
Rubyで機械学習してみた
kunou
1
1.1k
ZIP!!
kunou
0
170
zip
kunou
0
510
RubyのProcのあれをこうしました
kunou
0
93
esm lt Clojure like threading macro
kunou
0
420
Other Decks in Technology
See All in Technology
Cloudflareで実現する AIエージェント ワークフロー基盤
kmd09
0
290
今年一年で頑張ること / What I will do my best this year
pauli
1
220
商品レコメンドでのexplicit negative feedbackの活用
alpicola
2
360
30分でわかる「リスクから学ぶKubernetesコンテナセキュリティ」/30min-k8s-container-sec
mochizuki875
3
450
信頼されるためにやったこと、 やらなかったこと。/What we did to be trusted, What we did not do.
bitkey
PRO
0
2.2k
When Windows Meets Kubernetes…
pichuang
0
300
今から、 今だからこそ始める Terraform で Azure 管理 / Managing Azure with Terraform: The Perfect Time to Start
nnstt1
0
240
re:Invent2024 KeynoteのAmazon Q Developer考察
yusukeshimizu
1
150
#TRG24 / David Cuartielles / Post Open Source
tarugoconf
0
580
Amazon Q Developerで.NET Frameworkプロジェクトをモダナイズしてみた
kenichirokimura
1
200
RubyでKubernetesプログラミング
sat
PRO
4
160
【Oracle Cloud ウェビナー】2025年のセキュリティ脅威を読み解く:リスクに備えるためのレジリエンスとデータ保護
oracle4engineer
PRO
1
100
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
427
64k
How GitHub (no longer) Works
holman
312
140k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
4 Signs Your Business is Dying
shpigford
182
22k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
Code Review Best Practice
trishagee
65
17k
Visualization
eitanlees
146
15k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
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έʔϒϧศར