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
190
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
170
Let's try using AkiCart!!
9sq
0
820
Getting Started with ESP8266
9sq
1
210
Devsumi2016 OuchHackLT RESTful Toilet
9sq
0
110
An Attempt to Volcanic Activity Information Delivery using a Push Notification Service.
9sq
0
300
how to use ZY-FGD1442701V1 with mbed
9sq
0
6.3k
Security SAKURA #04 Lightning Talk
9sq
1
3.2k
Other Decks in Technology
See All in Technology
元旅行会社の情シス部員が教えるおすすめなre:Inventへの行き方 / What is the most efficient way to re:Invent
naospon
2
330
スクラムチームを立ち上げる〜チーム開発で得られたもの・得られなかったもの〜
ohnoeight
2
350
Lambdaと地方とコミュニティ
miu_crescent
2
370
ドメインの本質を掴む / Get the essence of the domain
sinsoku
2
150
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
0
110
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
360
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
2
3.2k
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
120
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
誰も全体を知らない ~ ロールの垣根を超えて引き上げる開発生産性 / Boosting Development Productivity Across Roles
kakehashi
1
220
開発生産性を上げながらビジネスも30倍成長させてきたチームの姿
kamina_zzz
2
1.7k
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.8k
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
73
9.1k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
Into the Great Unknown - MozCon
thekraken
32
1.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
A Philosophy of Restraint
colly
203
16k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
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ϖϦϑΣϥϧ ੍ޚι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QJPHQJPEJSFDUJPO DBUTZTDMBTTHQJPHQJPWBMVF ೖྗઃఆ ɹ↓ɹ ͷಡΈग़͠
εςοϐϯάϞʔλ 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