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
Qemb #01 Lightning Talk
Search
Keiichiro
December 24, 2012
Technology
2
200
Qemb #01 Lightning Talk
九州・熊本ハードウェア/組み込み系勉強会「Qemb」#01で発表したプレゼンです。
Keiichiro
December 24, 2012
Tweet
Share
More Decks by Keiichiro
See All by Keiichiro
Weather Data Scraping
9sq
0
180
Let's try using AkiCart!!
9sq
0
840
Getting Started with ESP8266
9sq
1
210
Devsumi2016 OuchHackLT RESTful Toilet
9sq
0
120
An Attempt to Volcanic Activity Information Delivery using a Push Notification Service.
9sq
0
320
how to use ZY-FGD1442701V1 with mbed
9sq
0
6.4k
Security SAKURA #04 Lightning Talk
9sq
1
3.3k
Other Decks in Technology
See All in Technology
月間60万ユーザーを抱える 個人開発サービス「Walica」の 技術スタック変遷
miyachin
1
140
30分でわかる「リスクから学ぶKubernetesコンテナセキュリティ」/30min-k8s-container-sec
mochizuki875
3
440
Bring Your Own Container: When Containers Turn the Key to EDR Bypass/byoc-avtokyo2024
tkmru
0
850
My small contributions - Fujiwara Tech Conference 2025
ijin
0
1.4k
2024AWSで個人的にアツかったアップデート
nagisa53
1
110
.NET AspireでAzure Functionsやクラウドリソースを統合する
tsubakimoto_s
0
190
今から、 今だからこそ始める Terraform で Azure 管理 / Managing Azure with Terraform: The Perfect Time to Start
nnstt1
0
220
AWS re:Invent 2024 recap in 20min / JAWSUG 千葉 2025.1.14
shimy
1
100
デジタルアイデンティティ技術 認可・ID連携・認証 応用 / 20250114-OIDF-J-EduWG-TechSWG
oidfj
2
670
2024年活動報告会(人材育成推進WG・ビジネスサブWG) / 20250114-OIDF-J-EduWG-BizSWG
oidfj
0
220
Amazon Q Developerで.NET Frameworkプロジェクトをモダナイズしてみた
kenichirokimura
1
200
自社 200 記事を元に整理した読みやすいテックブログを書くための Tips 集
masakihirose
2
330
Featured
See All Featured
Unsuck your backbone
ammeep
669
57k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Docker and Python
trallard
43
3.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
19
2.3k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
113
50k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Typedesign – Prime Four
hannesfritz
40
2.5k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Transcript
3BTQCFSSZ1JͰ(1*0ͳ Kei Yoshimura (@9SQ)
3BTQCFSSZ1JͬͯԿʁ ɾӳࠃϥζϕϦʔύΠࡒஂ͕։ൃͨ͠ARMࡌ ɹΧʔυαΠζίϯϐϡʔλɻ ɾίϯϐϡʔλڭҭΛతͱͯ͠ઃܭɺ҆Ձɻ ɾLinux͕ಈ͘ʂ
None
None
º(1*0 6"35 *$ 41* 7 7 (/% )%.* .CQT
&UIFSOFU 3+ 4%Χʔυεϩοτ .JDSP64# ిݯ༻ ίϯϙδοτग़ྗ NNδϟοΫ 64#ºϙʔτ
SDRAM 256MB / 512MB Broadcom VideoCore IV OpenGL ES 2.0
HD(1080p) H.264/MPEG4σίʔμ ARM11ϑΝϛϦʔ ARM1176JZF-S 700MHz HDMI ίϯϙδοτ 3.5mmεςϨΦϛχ SD Χʔυ SDIO USB HUB USB USB GPIO I2C SPI UART NIC LCD (DSI) Χϝϥ (CSI)
"SEVJOP%6& 3BTQCFSSZ1J "3.ࡌϘʔυͷҧ͍ "3. $PSUFY.
σόΠευϥΠό ΦϖϨʔςΟϯάγεςϜ ϥΠϒϥϦ $16ϖϦϑΣϥϧ $16ϖϦϑΣϥϧ ੍ޚιϑτ ੍ޚιϑτ ੍ޚର ੍ޚର
None
"SEVJO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VF ೖྗઃఆ ɹ↓ɹ ͷಡΈग़͠
εςοϐϯάϞʔλ 41( Λճ͢
#include <stdio.h> int main() { int i;
system("echo \"7\" > /sys/class/gpio/export"); system("echo \"8\" > /sys/class/gpio/export"); system("echo \"9\" > /sys/class/gpio/export"); system("echo \"10\" > /sys/class/gpio/export"); system("echo \"out\" > /sys/class/gpio/gpio7/direction"); system("echo \"out\" > /sys/class/gpio/gpio8/direction"); system("echo \"out\" > /sys/class/gpio/gpio9/direction"); system("echo \"out\" > /sys/class/gpio/gpio10/direction"); for (i=0; i<360; i++) { system("echo \"1\" > /sys/class/gpio/gpio7/value"); system("echo \"1\" > /sys/class/gpio/gpio8/value"); system("echo \"0\" > /sys/class/gpio/gpio7/value"); system("echo \"1\" > /sys/class/gpio/gpio8/value"); system("echo \"1\" > /sys/class/gpio/gpio9/value"); system("echo \"0\" > /sys/class/gpio/gpio8/value"); system("echo \"1\" > /sys/class/gpio/gpio9/value"); system("echo \"1\" > /sys/class/gpio/gpio10/value"); system("echo \"0\" > /sys/class/gpio/gpio9/value"); system("echo \"1\" > /sys/class/gpio/gpio10/value"); system("echo \"1\" > /sys/class/gpio/gpio7/value"); system("echo \"0\" > /sys/class/gpio/gpio10/value"); } system("echo \"7\" > /sys/class/gpio/unexport"); system("echo \"8\" > /sys/class/gpio/unexport"); system("echo \"9\" > /sys/class/gpio/unexport"); system("echo \"10\" > /sys/class/gpio/unexport"); }
ඇৗʹࡶʢεϚʔτͰͳ͍ʣ
1ZUIPOͰ੍ޚ 31J(1*0 IUUQQZQJQZUIPOPSHQZQJ31J(1*0 JNQPSU31J(1*0BT(1*0 JNQPSUTZT JNQPSUUJNF (1*0TFUNPEF (1*0#$. (1*0TFUVQ
(1*0065 (1*0PVUQVU (1*0)*() UJNFTMFFQ (1*0PVUQVU (1*0-08 (1*0DMFBOVQ (1*0 (/% LЊ
(1*0TFUVQ (1*0*/ WBM(1*0JOQVU ೖྗઃఆ ɹ↓ɹ ͷಡΈग़͠
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(7,GPIO.OUT) GPIO.setup(8,GPIO.OUT) GPIO.setup(9,GPIO.OUT) GPIO.setup(10,GPIO.OUT)
for i in range(0,360): GPIO.output(7,GPIO.HIGH) GPIO.output(8,GPIO.HIGH) GPIO.output(7,GPIO.LOW) GPIO.output(8,GPIO.HIGH) GPIO.output(9,GPIO.HIGH) GPIO.output(8,GPIO.LOW) GPIO.output(9,GPIO.HIGH) GPIO.output(10,GPIO.HIGH) GPIO.output(9,GPIO.LOW) GPIO.output(10,GPIO.HIGH) GPIO.output(7,GPIO.HIGH) GPIO.output(10,GPIO.LOW) GPIO.cleanup() #include <stdio.h> int main() { int i; system("echo \"7\" > /sys/class/gpio/export"); system("echo \"8\" > /sys/class/gpio/export"); system("echo \"9\" > /sys/class/gpio/export"); system("echo \"10\" > /sys/class/gpio/export"); system("echo \"out\" > /sys/class/gpio/gpio7/direction"); system("echo \"out\" > /sys/class/gpio/gpio8/direction"); system("echo \"out\" > /sys/class/gpio/gpio9/direction"); system("echo \"out\" > /sys/class/gpio/gpio10/direction"); for (i=0; i<360; i++) { system("echo \"1\" > /sys/class/gpio/gpio7/value"); system("echo \"1\" > /sys/class/gpio/gpio8/value"); system("echo \"0\" > /sys/class/gpio/gpio7/value"); system("echo \"1\" > /sys/class/gpio/gpio8/value"); system("echo \"1\" > /sys/class/gpio/gpio9/value"); system("echo \"0\" > /sys/class/gpio/gpio8/value"); system("echo \"1\" > /sys/class/gpio/gpio9/value"); system("echo \"1\" > /sys/class/gpio/gpio10/value"); system("echo \"0\" > /sys/class/gpio/gpio9/value"); system("echo \"1\" > /sys/class/gpio/gpio10/value"); system("echo \"1\" > /sys/class/gpio/gpio7/value"); system("echo \"0\" > /sys/class/gpio/gpio10/value"); } system("echo \"7\" > /sys/class/gpio/unexport"); system("echo \"8\" > /sys/class/gpio/unexport"); system("echo \"9\" > /sys/class/gpio/unexport"); system("echo \"10\" > /sys/class/gpio/unexport"); }
εοΩϦ ͔͍͠ (ຊ͏গ͠εϚʔτʹॻ͚·͢)
γΣϧ σόΠευϥΠό TIME/DIV 4.00ms TIME/DIV 2.00μs
ͭͮ͘...ʁ ͢Έ·ͤΜɺ৸མͪ͠·ͨ͠
ʢ৭ʑҙຯͰʣϨϕϧʢͳʣϒϩάͬͯ·͢ɻ IUUQFMFDMPHRVJUTRDPN