Created
February 22, 2016 02:47
-
-
Save uozias/7dd43636e0e936acca63 to your computer and use it in GitHub Desktop.
LEDチカチカ for IOTやりてぃー#1
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
// 設定箇所 | |
void setup() { | |
// digital pin 13をOUTPUTとして初期化 | |
pinMode(13, OUTPUT); | |
} | |
// ループ箇所 | |
void loop() { | |
digitalWrite(13, HIGH); // LEDをonにする (HIGHの電圧) | |
delay(1000); // 1秒待つ | |
digitalWrite(13, LOW); // LEDをoffにする(LOWの電圧) | |
delay(1000); // 1秒待つ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment