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
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
ハイテク休憩
sat
PRO
2
160
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
820
なぜCodeceptJSを選んだか
goataka
0
160
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
PHPからGoへのマイグレーション for DMMアフィリエイト
yabakokobayashi
1
170
AI時代のデータセンターネットワーク
lycorptech_jp
PRO
1
290
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
Snykで始めるセキュリティ担当者とSREと開発者が楽になる脆弱性対応 / Getting started with Snyk Vulnerability Response
yamaguchitk333
2
190
小学3年生夏休みの自由研究「夏休みに Copilot で遊んでみた」
taichinakamura
0
160
5分でわかるDuckDB
chanyou0311
10
3.2k
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
170
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
130
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
327
38k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Building Adaptive Systems
keathley
38
2.3k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Navigating Team Friction
lara
183
15k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
5
450
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
Documentation Writing (for coders)
carmenintech
66
4.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Bash Introduction
62gerente
608
210k
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έʔϒϧศར