HW-394 ESP-WROOM-32 BuiltIn LED Blink examples
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:
https://www.arduino.cc/en/Main/Products
modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/
int ledPin = 2;
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(ledPin, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
피드 구독하기:
글 (Atom)
시르바이, 중동 최초 AI 자율 드론 군집 기술 공개…현대 전장의 판도 바꾼다
중동 최초의 AI 기반 자율 드론 군집 기술이 세상에 공개됐어요. 🚁 아부다비에서 열린 UMEX 2026 행사장, 시르바이(SIRBAI)라는 기업이 방위 산업의 새로운 장을 열었어요. 여러 대의 드론이 마치 한 몸처럼 움직이며 스스로 판단하고 협...
-
여러분! 요즘 하늘을 나는 드론 기술이 정말 대단하다는 건 다들 아시죠? 그런데 우리나라 드론 기술이 미국 땅에서 큰 주목을 받았다는 소식이 들려왔어요. 바로 항공안전기술원이 미국 오클라호마주에서 개최한 '드론 로드쇼' 이야...
-
/* Blink Turns an LED on for one second, then off for one second, repeatedly. Most Arduinos have an on-board LED you can control. On...
-
안녕하세요! 요즘 AI가 우리 일상 깊숙이 들어오고 있는데, 서울이 글로벌 AI 혁신의 중심지로 떠오르고 있다는 소식이 들려와서 여러분께 공유드리고 싶어요. 지난 11월 13일, 네팔, 키르기스스탄, 부탄, 우즈베키스탄 등 4개국의 ICT 부처 고...