Last active
October 16, 2015 13:48
-
-
Save hm0429/968bff1eb2ef27c12ec5 to your computer and use it in GitHub Desktop.
Arduino_LED_Blink
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LED_PIN 13 | |
void setup() { | |
// LED_PIN (PIN 13) を OUTPUT として設定します | |
pinMode(LED_PIN, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(LED_PIN, HIGH); // LED_PIN を HIGH にします(点灯) | |
delay(1000); // 1秒待ちます | |
digitalWrite(LED_PIN, LOW); // LED_PIN を LOW にします(消灯) | |
delay(1000); // 1秒待ちます | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment