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
Azureの開発で辛いところ
re3turn
0
240
AWS re:Invent 2024 recap in 20min / JAWSUG 千葉 2025.1.14
shimy
1
100
Visual StudioとかIDE関連小ネタ話
kosmosebi
1
370
GoogleのAIエージェント論 Authors: Julia Wiesinger, Patrick Marlow and Vladimir Vuskovic
customercloud
PRO
0
160
20250116_自部署内でAmazon Nova体験会をやってみた話
riz3f7
1
100
Godot Engineについて調べてみた
unsoluble_sugar
0
410
AWSの生成AIサービス Amazon Bedrock入門!(2025年1月版)
minorun365
PRO
7
470
【NGK2025S】動物園(PINTO_model_zoo)に遊びに行こう
kazuhitotakahashi
0
240
My small contributions - Fujiwara Tech Conference 2025
ijin
0
1.4k
comilioとCloudflare、そして未来へと向けて
oliver_diary
6
450
実践! ソフトウェアエンジニアリングの価値の計測 ── Effort、Output、Outcome、Impact
nomuson
0
2.1k
Cloudflareで実現する AIエージェント ワークフロー基盤
kmd09
0
290
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
328
38k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
Building Adaptive Systems
keathley
38
2.4k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7.1k
Building Applications with DynamoDB
mza
93
6.2k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Gamification - CAS2011
davidbonilla
80
5.1k
Agile that works and the tools we love
rasmusluckow
328
21k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.6k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
173
51k
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έʔϒϧศར