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
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
160
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
170
Lambdaと地方とコミュニティ
miu_crescent
2
370
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
750
Why does continuous profiling matter to developers? #appdevelopercon
salaboy
0
180
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
TypeScript、上達の瞬間
sadnessojisan
46
13k
ドメイン名の終活について - JPAAWG 7th -
mikit
33
20k
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
980
Platform Engineering for Software Developers and Architects
syntasso
1
510
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
A better future with KSS
kneath
238
17k
The World Runs on Bad Software
bkeepers
PRO
65
11k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Docker and Python
trallard
40
3.1k
Faster Mobile Websites
deanohume
305
30k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
A Philosophy of Restraint
colly
203
16k
For a Future-Friendly Web
brad_frost
175
9.4k
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έʔϒϧศར