Alljoyn/Alljoyn.org | 2014. 7. 14. 13:30
[Alljoyn] AllJoyn Service Frameworks - Audio (0) | 2014.07.21 |
---|---|
[Alljoyn] AllJoyn Service Frameworks - Control Panel (0) | 2014.07.17 |
[Alljoyn] AllJoyn Service Frameworks - Notifications (0) | 2014.07.17 |
[Alljoyn] AllJoyn Service Frameworks - Onboarding (0) | 2014.07.16 |
Arduino/관련링크 | 2014. 7. 4. 21:58
http://wiki.vctec.co.kr/opensource/arduino
Arduino/문법정리 | 2014. 7. 4. 21:17
void setup() :
마이크로프로세서에 전원이 들어올 때 한번만 실행되는 부분이다.
void setup() {
...
}
pinMode() :
마이크로프로세서에게 핀을 어떠한 기능으로 사용할 것인지 설정한다.
pinMode(pinName, MODE);
(ex. pinMode(LED0, OUTPUT))
void loop() :
setup() 이후, 실제로 실행되고 전원이 들어오는 한 loop() 내의 코드는 무한히 반복된다.
void loop() {
...
}
digitalWrite() :
특정 핀에 5v의 전압을 보내거나 보내지 않도록 지시한다.
digitalWrite(pinName, STATE);
(ex. digitalWrite(LED0, LOW))
analogWrite() :
아날로그 출력을 위해 펄스 폭 변조(PWM : Pulse Width Modulation)을 사용하는데, 이때 코드상에서 PWM을 사용하기 위해서는 analowWrite() 코드를 사용한다.
analogWrite(pinName, value);
(ex. digitalWrite(LED0, 127) / value : 0 ~255 사이의 정수)
delay() :
ms단위로 시간을 지정하여 지정된 시간동안 프로그램을 멈추도록 설정한다.
delay(time in milliseconds);
(ex. delay(1000))
(계속...)
[아두이노/Arduino] 기본문법 (0) | 2014.07.04 |
---|
Arduino/문법정리 | 2014. 7. 4. 21:02
* 변수
datatype variableName = value;
(ex. int loopCount = 10)
* 핀(pin) 이름 설정
datatype pinName = pinNumber;
(ex. int LED0 = 2)
[아두이노/Arduino] 내장함수 (0) | 2014.07.04 |
---|
Arduino/실습도구 | 2014. 7. 4. 20:55
http://fritzing.org/download/
Fritzing is open source, free software. Be aware that the development of it depends on theactive support of the community.
Select the download for your platform below.
Version 0.8.7b was released on Jan. 24, 2014.
[아두이노/Arduino] Processing IDE (0) | 2014.07.04 |
---|---|
[아두이노/Arduino] Arduino IDE (0) | 2014.07.04 |