first commit
This commit is contained in:
18
ESP8266_TEST_SERIAL/ESP8266_TEST_SERIAL.ino
Executable file
18
ESP8266_TEST_SERIAL/ESP8266_TEST_SERIAL.ino
Executable file
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user