Files
Arduino/ESP8266_TEST_SERIAL/ESP8266_TEST_SERIAL.ino
Jérôme Delacotte 7b30d6e298 first commit
2025-03-06 11:15:32 +01:00

19 lines
743 B
C++
Executable File

void setup() {
delay(1000);
Serial.begin(9600);
//pinMode(13, OUTPUT); // Initialize the LED_BUILTIN pin as an output
delay(1000);
}
// the loop function runs over and over again forever
void loop() {
//digitalWrite(13, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is acive low on the ESP-01)
Serial.println("LED On!");
delay(1000); // Wait for a second
// digitalWrite(13, HIGH); // Turn the LED off by making the voltage HIGH
Serial.println("LED Off!");
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}