Created
February 6, 2020 08:25
-
-
Save takataka5614/b54bba92c8bbf2dfd0b9f6eada82f61b to your computer and use it in GitHub Desktop.
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
/* ボード上のLEDをブリンク | |
* ESP32 LED Blink | |
* | |
* ON Board LED GPIO 2 | |
*/ | |
#define LED 2 // このピンNo.を変更すればボード外のLEDを点滅 | |
void setup() | |
{ | |
pinMode(LED,OUTPUT); // Set pin mode | |
} | |
void loop() | |
{ | |
delay(500); | |
digitalWrite(LED,HIGH); | |
delay(500); | |
digitalWrite(LED,LOW); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment