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秒まつ
}
コード
#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秒まつ }
Sponsor Link