0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ESP32: 簡単な Lチカ

Posted at

こちらと同じことを行いました。
【ESP32で電子工作-1】ESP32の入出力ポートを使用してLED点滅【Lチカ】

esp32_feb27.png

Arduino IDE 2.3.4 を使いました。
ボードは ESP32 Dev Module です。

image.png

プログラム

led_test01.ino
// ---------------------------------------------------------------------
/*
	led_test01.ino
						Feb/27/2025
*/
// ---------------------------------------------------------------------
#define	PROGRAM	"led_test01.ino"
#define	VERSION	"2025-02-27 PM 16:22"

#define LED_BUILTIN 12

int icount = 0;
// ---------------------------------------------------------------------
void setup() {
	Serial.begin(115200);
	
	delay(1000);
	Serial.println("*** start ***");
	
	delay(1000);
	Serial.println("*** Feb/27/2025 ***");
	pinMode(LED_BUILTIN, OUTPUT);
	delay(1000);
	Serial.println(PROGRAM);
	Serial.println(VERSION);
	Serial.println("*** setup end ***");
}

// ---------------------------------------------------------------------
void loop() {
	Serial.println("*** Feb/27/2025 ***");
	Serial.println("*** loop *** " + String(icount));
  digitalWrite(LED_BUILTIN, HIGH);
  delay(4000);
Serial.println("*** loop bbb ***");
  digitalWrite(LED_BUILTIN, LOW);
  delay(2000);

	icount++;
}
// ---------------------------------------------------------------------
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?