Ae 1209 Iot Lab 6
Ae 1209 Iot Lab 6
AE-1209
B.Sc. Computer Science Hons
IOT
GE Electronics (VI Semester)
LAB -6
Program Code :-
void setup() {
pinMode(2, OUTPUT); // Initialize the LED BUILTIN pin as an
output
}
Result :-
When this code is uploaded to an ESP8266, the built-in LED will blink in the following pattern:
1. The LED will turn on for 1 second.
2. The LED will turn off for 2 seconds.
3. This on/off cycle will repeat continuously.