Blink LED in Intel® Edison for Arduino expansion board
Intel® Edison for Arduino 보드에 연결되어 있는 DS2 LED를 점멸 테스트 한다.
DS2 LED는 PIN 13번에 연결되어 있다.
Hardware Required
- Intel® Edison Module
- Arduino* expansion board
Circuit
Schematic
Code
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
Serial.begin(115200);
Serial.println("LED Demo");
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
Serial.println("Pin-HIGH");
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
Serial.println("Pin-LOW");
delay(1000); // wait for a second
}
See
Also
'IoT > Intel Edison' 카테고리의 다른 글
Grove - Buzzer (0) | 2015.01.24 |
---|---|
Grove - Button and LED (0) | 2015.01.22 |
Connect the Intel Edison device to WiFi (0) | 2014.12.26 |
Grove Starter Kit Plus - Intel® IoT Edition (0) | 2014.12.20 |
Intel® Edison kit for Arduino* (0) | 2014.12.20 |