SlideShare une entreprise Scribd logo
1  sur  29
Télécharger pour lire hors ligne
setup() 환경을 설정하는데 사용된다.
loop() 실제 코드를 작성하는 부분
Serial.begin( ) 시리얼 통신을 시작한다.
Serial.print( ) 내용을 출력한다.
Serial.println( ) 내용을 출력하고 한 줄 밑으로 내린다.
pinMode(pin, mode);
각각의 핀의 용도를 결정한다.
(ex: INPUT, OUTPUT)
digitalRead(pin);
디지털 입력을 받아들인다. (ex: LOW, HIGH)
digitalWrite(pin);
디지털 출력을 한다. (ex: LOW, HIGH)
• Digital has two values: on and off
• Analog has many (infinite) values
• Computers don’t really do analog, they quantize
• Remember the 6 analog input pins---here’s how
they work
delay(ms)
주어진 시간만큼 실행을 지연 시킨다.
ex: delay(1000);
delayMicroseconds(us)
주어진 시간만큼 실행을 지연 시킨다
차이가 있다면 단위가 microseconds 이다.
http://arduino.cc/en/Tutorial/Tone
IoT Camp
끄읏~

Contenu connexe

Tendances

Effective Modern C++ MVA item 18 Use std::unique_ptr for exclusive-ownership ...
Effective Modern C++ MVA item 18 Use std::unique_ptr for exclusive-ownership ...Effective Modern C++ MVA item 18 Use std::unique_ptr for exclusive-ownership ...
Effective Modern C++ MVA item 18 Use std::unique_ptr for exclusive-ownership ...Seok-joon Yun
 
알고리즘 연합캠프 세미나 3-C (C++11 and ETC)
알고리즘 연합캠프 세미나 3-C (C++11 and ETC)알고리즘 연합캠프 세미나 3-C (C++11 and ETC)
알고리즘 연합캠프 세미나 3-C (C++11 and ETC)HYUNJEONG KIM
 
Unity Surface Shader for Artist 04
Unity Surface Shader for Artist 04Unity Surface Shader for Artist 04
Unity Surface Shader for Artist 04SangYun Yi
 
[C++ Korea] Effective Modern C++ MVA item 8 Prefer nullptr to 0 and null +윤석준
[C++ Korea] Effective Modern C++ MVA item 8 Prefer nullptr to 0 and null +윤석준[C++ Korea] Effective Modern C++ MVA item 8 Prefer nullptr to 0 and null +윤석준
[C++ Korea] Effective Modern C++ MVA item 8 Prefer nullptr to 0 and null +윤석준Seok-joon Yun
 
폰노이만 머신 이해
폰노이만 머신 이해폰노이만 머신 이해
폰노이만 머신 이해중선 곽
 
LockFree Algorithm
LockFree AlgorithmLockFree Algorithm
LockFree AlgorithmMerry Merry
 
Voxel based game_optimazation_relelase
Voxel based game_optimazation_relelaseVoxel based game_optimazation_relelase
Voxel based game_optimazation_relelaseYEONG-CHEON YOU
 
[C++ Korea] Effective Modern C++ MVA item 9 Prefer alias declarations to type...
[C++ Korea] Effective Modern C++ MVA item 9 Prefer alias declarations to type...[C++ Korea] Effective Modern C++ MVA item 9 Prefer alias declarations to type...
[C++ Korea] Effective Modern C++ MVA item 9 Prefer alias declarations to type...Seok-joon Yun
 
모던 C++ 정리
모던 C++ 정리모던 C++ 정리
모던 C++ 정리Hansol Kang
 
CODE - 주판에서 반도체까지
CODE - 주판에서 반도체까지CODE - 주판에서 반도체까지
CODE - 주판에서 반도체까지Choonghyun Yang
 
12.05.26 roam algorithm
12.05.26 roam algorithm12.05.26 roam algorithm
12.05.26 roam algorithm준섭 김
 
프로그래머가 몰랐던 멀티코어 CPU 이야기 13, 14장
프로그래머가 몰랐던 멀티코어 CPU 이야기 13, 14장프로그래머가 몰랐던 멀티코어 CPU 이야기 13, 14장
프로그래머가 몰랐던 멀티코어 CPU 이야기 13, 14장SukYun Yoon
 
알고리즘 연합캠프 세미나 1-C (알고리즘 설계와 모델링 및 수학)
알고리즘 연합캠프 세미나 1-C (알고리즘 설계와 모델링 및 수학)알고리즘 연합캠프 세미나 1-C (알고리즘 설계와 모델링 및 수학)
알고리즘 연합캠프 세미나 1-C (알고리즘 설계와 모델링 및 수학)HYUNJEONG KIM
 
[C++ Korea 2nd Seminar] C++17 Key Features Summary
[C++ Korea 2nd Seminar] C++17 Key Features Summary[C++ Korea 2nd Seminar] C++17 Key Features Summary
[C++ Korea 2nd Seminar] C++17 Key Features SummaryChris Ohk
 

Tendances (16)

MutiCore 19-20
MutiCore 19-20MutiCore 19-20
MutiCore 19-20
 
Effective Modern C++ MVA item 18 Use std::unique_ptr for exclusive-ownership ...
Effective Modern C++ MVA item 18 Use std::unique_ptr for exclusive-ownership ...Effective Modern C++ MVA item 18 Use std::unique_ptr for exclusive-ownership ...
Effective Modern C++ MVA item 18 Use std::unique_ptr for exclusive-ownership ...
 
알고리즘 연합캠프 세미나 3-C (C++11 and ETC)
알고리즘 연합캠프 세미나 3-C (C++11 and ETC)알고리즘 연합캠프 세미나 3-C (C++11 and ETC)
알고리즘 연합캠프 세미나 3-C (C++11 and ETC)
 
Unity Surface Shader for Artist 04
Unity Surface Shader for Artist 04Unity Surface Shader for Artist 04
Unity Surface Shader for Artist 04
 
[C++ Korea] Effective Modern C++ MVA item 8 Prefer nullptr to 0 and null +윤석준
[C++ Korea] Effective Modern C++ MVA item 8 Prefer nullptr to 0 and null +윤석준[C++ Korea] Effective Modern C++ MVA item 8 Prefer nullptr to 0 and null +윤석준
[C++ Korea] Effective Modern C++ MVA item 8 Prefer nullptr to 0 and null +윤석준
 
폰노이만 머신 이해
폰노이만 머신 이해폰노이만 머신 이해
폰노이만 머신 이해
 
LockFree Algorithm
LockFree AlgorithmLockFree Algorithm
LockFree Algorithm
 
Voxel based game_optimazation_relelase
Voxel based game_optimazation_relelaseVoxel based game_optimazation_relelase
Voxel based game_optimazation_relelase
 
[C++ Korea] Effective Modern C++ MVA item 9 Prefer alias declarations to type...
[C++ Korea] Effective Modern C++ MVA item 9 Prefer alias declarations to type...[C++ Korea] Effective Modern C++ MVA item 9 Prefer alias declarations to type...
[C++ Korea] Effective Modern C++ MVA item 9 Prefer alias declarations to type...
 
모던 C++ 정리
모던 C++ 정리모던 C++ 정리
모던 C++ 정리
 
CODE - 주판에서 반도체까지
CODE - 주판에서 반도체까지CODE - 주판에서 반도체까지
CODE - 주판에서 반도체까지
 
12.05.26 roam algorithm
12.05.26 roam algorithm12.05.26 roam algorithm
12.05.26 roam algorithm
 
ES6 for Node.js Study 2주차
ES6 for Node.js Study 2주차ES6 for Node.js Study 2주차
ES6 for Node.js Study 2주차
 
프로그래머가 몰랐던 멀티코어 CPU 이야기 13, 14장
프로그래머가 몰랐던 멀티코어 CPU 이야기 13, 14장프로그래머가 몰랐던 멀티코어 CPU 이야기 13, 14장
프로그래머가 몰랐던 멀티코어 CPU 이야기 13, 14장
 
알고리즘 연합캠프 세미나 1-C (알고리즘 설계와 모델링 및 수학)
알고리즘 연합캠프 세미나 1-C (알고리즘 설계와 모델링 및 수학)알고리즘 연합캠프 세미나 1-C (알고리즘 설계와 모델링 및 수학)
알고리즘 연합캠프 세미나 1-C (알고리즘 설계와 모델링 및 수학)
 
[C++ Korea 2nd Seminar] C++17 Key Features Summary
[C++ Korea 2nd Seminar] C++17 Key Features Summary[C++ Korea 2nd Seminar] C++17 Key Features Summary
[C++ Korea 2nd Seminar] C++17 Key Features Summary
 

En vedette

World war ii
World war iiWorld war ii
World war iiJohn Hext
 
Coding Conventions & Secure Coding
Coding Conventions & Secure CodingCoding Conventions & Secure Coding
Coding Conventions & Secure CodingDonghyun Seo
 
[제11회 인터넷리더십 프로그램] 디지털 시대 지식의 공유 - 서정욱
[제11회 인터넷리더십 프로그램] 디지털 시대 지식의 공유 - 서정욱[제11회 인터넷리더십 프로그램] 디지털 시대 지식의 공유 - 서정욱
[제11회 인터넷리더십 프로그램] 디지털 시대 지식의 공유 - 서정욱daumfoundation
 
Voice Over U M T S Evolution From W C D M A, H S P A To L T E
Voice Over  U M T S Evolution From  W C D M A, H S P A To  L T EVoice Over  U M T S Evolution From  W C D M A, H S P A To  L T E
Voice Over U M T S Evolution From W C D M A, H S P A To L T EPengpeng Song
 
Storm - understand by coding
Storm - understand by codingStorm - understand by coding
Storm - understand by codingTaewoo Kim
 
The Role and Use of Military History
The Role and Use of Military HistoryThe Role and Use of Military History
The Role and Use of Military HistoryDan Elder, MS
 
01 우리시대 코딩(coding) 이야기
01 우리시대 코딩(coding) 이야기01 우리시대 코딩(coding) 이야기
01 우리시대 코딩(coding) 이야기the Learning & Company
 
nazi's war machines part I armoured vehicles
nazi's war machines part I armoured vehiclesnazi's war machines part I armoured vehicles
nazi's war machines part I armoured vehiclesVillar16
 
Images of kursk, history's greatest tank battle
Images of kursk, history's greatest tank battleImages of kursk, history's greatest tank battle
Images of kursk, history's greatest tank battleKerry Prince
 
Weblockly 소개자료
Weblockly 소개자료Weblockly 소개자료
Weblockly 소개자료Kay Sung Hyuk
 
Francois verlinden dioramas special 01
Francois verlinden dioramas special 01Francois verlinden dioramas special 01
Francois verlinden dioramas special 01Ruben Lvrz
 
Germany's tiger tanks vk45.02 to tiger ii design, production & modifications
Germany's tiger tanks vk45.02 to tiger ii design, production & modificationsGermany's tiger tanks vk45.02 to tiger ii design, production & modifications
Germany's tiger tanks vk45.02 to tiger ii design, production & modificationsKerry Prince
 
German ww2 uniforms
German ww2 uniformsGerman ww2 uniforms
German ww2 uniformsww2militaria
 
A Primer On Military Vehicle Mobility Vintage 2003
A Primer On Military Vehicle Mobility   Vintage 2003A Primer On Military Vehicle Mobility   Vintage 2003
A Primer On Military Vehicle Mobility Vintage 2003Jim Lutz
 
Encyclopedia of german tanks of wwii
Encyclopedia of german tanks of wwiiEncyclopedia of german tanks of wwii
Encyclopedia of german tanks of wwiiKerry Prince
 
Survey of U.S. Army Uniforms
Survey of U.S. Army UniformsSurvey of U.S. Army Uniforms
Survey of U.S. Army UniformsGravity Media
 
코딩인카페 C&JAVA 기초과정 C프로그래밍(3)
코딩인카페 C&JAVA 기초과정 C프로그래밍(3)코딩인카페 C&JAVA 기초과정 C프로그래밍(3)
코딩인카페 C&JAVA 기초과정 C프로그래밍(3)유익아카데미
 

En vedette (20)

World war ii
World war iiWorld war ii
World war ii
 
Coding Conventions & Secure Coding
Coding Conventions & Secure CodingCoding Conventions & Secure Coding
Coding Conventions & Secure Coding
 
Huffman tree coding
Huffman tree codingHuffman tree coding
Huffman tree coding
 
[제11회 인터넷리더십 프로그램] 디지털 시대 지식의 공유 - 서정욱
[제11회 인터넷리더십 프로그램] 디지털 시대 지식의 공유 - 서정욱[제11회 인터넷리더십 프로그램] 디지털 시대 지식의 공유 - 서정욱
[제11회 인터넷리더십 프로그램] 디지털 시대 지식의 공유 - 서정욱
 
Voice Over U M T S Evolution From W C D M A, H S P A To L T E
Voice Over  U M T S Evolution From  W C D M A, H S P A To  L T EVoice Over  U M T S Evolution From  W C D M A, H S P A To  L T E
Voice Over U M T S Evolution From W C D M A, H S P A To L T E
 
Storm - understand by coding
Storm - understand by codingStorm - understand by coding
Storm - understand by coding
 
The Role and Use of Military History
The Role and Use of Military HistoryThe Role and Use of Military History
The Role and Use of Military History
 
01 우리시대 코딩(coding) 이야기
01 우리시대 코딩(coding) 이야기01 우리시대 코딩(coding) 이야기
01 우리시대 코딩(coding) 이야기
 
nazi's war machines part I armoured vehicles
nazi's war machines part I armoured vehiclesnazi's war machines part I armoured vehicles
nazi's war machines part I armoured vehicles
 
Images of kursk, history's greatest tank battle
Images of kursk, history's greatest tank battleImages of kursk, history's greatest tank battle
Images of kursk, history's greatest tank battle
 
Weblockly 소개자료
Weblockly 소개자료Weblockly 소개자료
Weblockly 소개자료
 
Francois verlinden dioramas special 01
Francois verlinden dioramas special 01Francois verlinden dioramas special 01
Francois verlinden dioramas special 01
 
Germany's tiger tanks vk45.02 to tiger ii design, production & modifications
Germany's tiger tanks vk45.02 to tiger ii design, production & modificationsGermany's tiger tanks vk45.02 to tiger ii design, production & modifications
Germany's tiger tanks vk45.02 to tiger ii design, production & modifications
 
German ww2 uniforms
German ww2 uniformsGerman ww2 uniforms
German ww2 uniforms
 
5G Coding
5G Coding5G Coding
5G Coding
 
Social Coding GitHub 2015
Social Coding GitHub 2015Social Coding GitHub 2015
Social Coding GitHub 2015
 
A Primer On Military Vehicle Mobility Vintage 2003
A Primer On Military Vehicle Mobility   Vintage 2003A Primer On Military Vehicle Mobility   Vintage 2003
A Primer On Military Vehicle Mobility Vintage 2003
 
Encyclopedia of german tanks of wwii
Encyclopedia of german tanks of wwiiEncyclopedia of german tanks of wwii
Encyclopedia of german tanks of wwii
 
Survey of U.S. Army Uniforms
Survey of U.S. Army UniformsSurvey of U.S. Army Uniforms
Survey of U.S. Army Uniforms
 
코딩인카페 C&JAVA 기초과정 C프로그래밍(3)
코딩인카페 C&JAVA 기초과정 C프로그래밍(3)코딩인카페 C&JAVA 기초과정 C프로그래밍(3)
코딩인카페 C&JAVA 기초과정 C프로그래밍(3)
 

Plus de 영욱 김

20170701 microsoft 오픈소스의 종류와 활용법
20170701 microsoft 오픈소스의 종류와 활용법20170701 microsoft 오픈소스의 종류와 활용법
20170701 microsoft 오픈소스의 종류와 활용법영욱 김
 
20160511 Azure Datacenter
20160511 Azure Datacenter20160511 Azure Datacenter
20160511 Azure Datacenter영욱 김
 
20160511 azure를 기반으로한 인공지능 io t 생태계 구축 전략
20160511 azure를 기반으로한 인공지능 io t 생태계 구축 전략20160511 azure를 기반으로한 인공지능 io t 생태계 구축 전략
20160511 azure를 기반으로한 인공지능 io t 생태계 구축 전략영욱 김
 
20160412 이미테이션 게임과 it기업들의 인공지능
20160412 이미테이션 게임과 it기업들의 인공지능20160412 이미테이션 게임과 it기업들의 인공지능
20160412 이미테이션 게임과 it기업들의 인공지능영욱 김
 
20160409 서브라임텍스트 대신 visual studio code로 만들어 보는 웹 환경
20160409 서브라임텍스트 대신 visual studio code로 만들어 보는 웹 환경20160409 서브라임텍스트 대신 visual studio code로 만들어 보는 웹 환경
20160409 서브라임텍스트 대신 visual studio code로 만들어 보는 웹 환경영욱 김
 
20160408 smart farm
20160408 smart farm20160408 smart farm
20160408 smart farm영욱 김
 
20151117 IoT를 위한 서비스 구성과 개발
20151117 IoT를 위한 서비스 구성과 개발20151117 IoT를 위한 서비스 구성과 개발
20151117 IoT를 위한 서비스 구성과 개발영욱 김
 
20150728 100분만에 배우는 windows 10 앱 개발
20150728 100분만에 배우는 windows 10 앱 개발20150728 100분만에 배우는 windows 10 앱 개발
20150728 100분만에 배우는 windows 10 앱 개발영욱 김
 
20150912 windows 10 앱 tips tricks
20150912 windows 10 앱 tips  tricks20150912 windows 10 앱 tips  tricks
20150912 windows 10 앱 tips tricks영욱 김
 
20150912 IoT 디바이스를 위한 windows 10 iot core 입문
20150912 IoT 디바이스를 위한 windows 10 iot core 입문20150912 IoT 디바이스를 위한 windows 10 iot core 입문
20150912 IoT 디바이스를 위한 windows 10 iot core 입문영욱 김
 
20150912 Adaptive UI 권영철
20150912 Adaptive UI 권영철20150912 Adaptive UI 권영철
20150912 Adaptive UI 권영철영욱 김
 
201500912 Hello Windows 10
201500912 Hello Windows 10201500912 Hello Windows 10
201500912 Hello Windows 10영욱 김
 
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드영욱 김
 
20150812 4시간만에 따라해보는 windows 10 앱 개발
20150812  4시간만에 따라해보는 windows 10 앱 개발20150812  4시간만에 따라해보는 windows 10 앱 개발
20150812 4시간만에 따라해보는 windows 10 앱 개발영욱 김
 
IoT Devices And Arduino
IoT Devices And ArduinoIoT Devices And Arduino
IoT Devices And Arduino영욱 김
 
20150212 사례로보는 Microsoft IoT와 서비스 개발
20150212 사례로보는 Microsoft IoT와 서비스 개발20150212 사례로보는 Microsoft IoT와 서비스 개발
20150212 사례로보는 Microsoft IoT와 서비스 개발영욱 김
 
20150207 Node.js on Azure - MeltingPot seminar in Busan
20150207 Node.js on Azure - MeltingPot seminar in Busan20150207 Node.js on Azure - MeltingPot seminar in Busan
20150207 Node.js on Azure - MeltingPot seminar in Busan영욱 김
 
크로스 플랫폼 기술과 오픈소스로 진화하는 Microsoft의 개발자 생태게
크로스 플랫폼 기술과 오픈소스로 진화하는 Microsoft의 개발자 생태게 크로스 플랫폼 기술과 오픈소스로 진화하는 Microsoft의 개발자 생태게
크로스 플랫폼 기술과 오픈소스로 진화하는 Microsoft의 개발자 생태게 영욱 김
 
20141216 멜팅팟 부산 세션 i - microsoft 사물인터넷
20141216 멜팅팟 부산   세션 i - microsoft 사물인터넷20141216 멜팅팟 부산   세션 i - microsoft 사물인터넷
20141216 멜팅팟 부산 세션 i - microsoft 사물인터넷영욱 김
 
20141216 멜팅팟 부산 세션 ii - cross platform 개발
20141216 멜팅팟 부산   세션 ii - cross platform 개발20141216 멜팅팟 부산   세션 ii - cross platform 개발
20141216 멜팅팟 부산 세션 ii - cross platform 개발영욱 김
 

Plus de 영욱 김 (20)

20170701 microsoft 오픈소스의 종류와 활용법
20170701 microsoft 오픈소스의 종류와 활용법20170701 microsoft 오픈소스의 종류와 활용법
20170701 microsoft 오픈소스의 종류와 활용법
 
20160511 Azure Datacenter
20160511 Azure Datacenter20160511 Azure Datacenter
20160511 Azure Datacenter
 
20160511 azure를 기반으로한 인공지능 io t 생태계 구축 전략
20160511 azure를 기반으로한 인공지능 io t 생태계 구축 전략20160511 azure를 기반으로한 인공지능 io t 생태계 구축 전략
20160511 azure를 기반으로한 인공지능 io t 생태계 구축 전략
 
20160412 이미테이션 게임과 it기업들의 인공지능
20160412 이미테이션 게임과 it기업들의 인공지능20160412 이미테이션 게임과 it기업들의 인공지능
20160412 이미테이션 게임과 it기업들의 인공지능
 
20160409 서브라임텍스트 대신 visual studio code로 만들어 보는 웹 환경
20160409 서브라임텍스트 대신 visual studio code로 만들어 보는 웹 환경20160409 서브라임텍스트 대신 visual studio code로 만들어 보는 웹 환경
20160409 서브라임텍스트 대신 visual studio code로 만들어 보는 웹 환경
 
20160408 smart farm
20160408 smart farm20160408 smart farm
20160408 smart farm
 
20151117 IoT를 위한 서비스 구성과 개발
20151117 IoT를 위한 서비스 구성과 개발20151117 IoT를 위한 서비스 구성과 개발
20151117 IoT를 위한 서비스 구성과 개발
 
20150728 100분만에 배우는 windows 10 앱 개발
20150728 100분만에 배우는 windows 10 앱 개발20150728 100분만에 배우는 windows 10 앱 개발
20150728 100분만에 배우는 windows 10 앱 개발
 
20150912 windows 10 앱 tips tricks
20150912 windows 10 앱 tips  tricks20150912 windows 10 앱 tips  tricks
20150912 windows 10 앱 tips tricks
 
20150912 IoT 디바이스를 위한 windows 10 iot core 입문
20150912 IoT 디바이스를 위한 windows 10 iot core 입문20150912 IoT 디바이스를 위한 windows 10 iot core 입문
20150912 IoT 디바이스를 위한 windows 10 iot core 입문
 
20150912 Adaptive UI 권영철
20150912 Adaptive UI 권영철20150912 Adaptive UI 권영철
20150912 Adaptive UI 권영철
 
201500912 Hello Windows 10
201500912 Hello Windows 10201500912 Hello Windows 10
201500912 Hello Windows 10
 
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
 
20150812 4시간만에 따라해보는 windows 10 앱 개발
20150812  4시간만에 따라해보는 windows 10 앱 개발20150812  4시간만에 따라해보는 windows 10 앱 개발
20150812 4시간만에 따라해보는 windows 10 앱 개발
 
IoT Devices And Arduino
IoT Devices And ArduinoIoT Devices And Arduino
IoT Devices And Arduino
 
20150212 사례로보는 Microsoft IoT와 서비스 개발
20150212 사례로보는 Microsoft IoT와 서비스 개발20150212 사례로보는 Microsoft IoT와 서비스 개발
20150212 사례로보는 Microsoft IoT와 서비스 개발
 
20150207 Node.js on Azure - MeltingPot seminar in Busan
20150207 Node.js on Azure - MeltingPot seminar in Busan20150207 Node.js on Azure - MeltingPot seminar in Busan
20150207 Node.js on Azure - MeltingPot seminar in Busan
 
크로스 플랫폼 기술과 오픈소스로 진화하는 Microsoft의 개발자 생태게
크로스 플랫폼 기술과 오픈소스로 진화하는 Microsoft의 개발자 생태게 크로스 플랫폼 기술과 오픈소스로 진화하는 Microsoft의 개발자 생태게
크로스 플랫폼 기술과 오픈소스로 진화하는 Microsoft의 개발자 생태게
 
20141216 멜팅팟 부산 세션 i - microsoft 사물인터넷
20141216 멜팅팟 부산   세션 i - microsoft 사물인터넷20141216 멜팅팟 부산   세션 i - microsoft 사물인터넷
20141216 멜팅팟 부산 세션 i - microsoft 사물인터넷
 
20141216 멜팅팟 부산 세션 ii - cross platform 개발
20141216 멜팅팟 부산   세션 ii - cross platform 개발20141216 멜팅팟 부산   세션 ii - cross platform 개발
20141216 멜팅팟 부산 세션 ii - cross platform 개발
 

Arduino Coding

  • 1.
  • 2.
  • 3.
  • 4.
  • 5. setup() 환경을 설정하는데 사용된다. loop() 실제 코드를 작성하는 부분 Serial.begin( ) 시리얼 통신을 시작한다. Serial.print( ) 내용을 출력한다. Serial.println( ) 내용을 출력하고 한 줄 밑으로 내린다.
  • 6. pinMode(pin, mode); 각각의 핀의 용도를 결정한다. (ex: INPUT, OUTPUT) digitalRead(pin); 디지털 입력을 받아들인다. (ex: LOW, HIGH) digitalWrite(pin); 디지털 출력을 한다. (ex: LOW, HIGH)
  • 7. • Digital has two values: on and off • Analog has many (infinite) values • Computers don’t really do analog, they quantize • Remember the 6 analog input pins---here’s how they work
  • 8. delay(ms) 주어진 시간만큼 실행을 지연 시킨다. ex: delay(1000); delayMicroseconds(us) 주어진 시간만큼 실행을 지연 시킨다 차이가 있다면 단위가 microseconds 이다.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.