ESP8266でのLチカ

     

TAGS:

⌛️ < 1 min.
OTAを試したいんだけど、動作に変化がないとわからないので、まずは、Lチカ作ってみました。

普通に L チカです

コード

#include <Arduino.h>

void setup() {
  // put your setup code here, to run once:
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED_BUILTIN, HIGH)  ;
  delay(5000);     // 5秒まつ
  digitalWrite(LED_BUILTIN, LOW);
  delay(5000);     // 5秒まつ
}

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です