I was trying to use a very script:
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
Serial.begin(115200);
Serial.println("Welcome");
Serial.flush();
pinMode(D2, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("Test1");
Serial.flush();
digitalWrite(D2, HIGH); // turn the LED on (HIGH is the voltage level)
Serial.println("High");
Serial.flush();
delay(100); // wait for a second
digitalWrite(D2, LOW); // turn the LED off by making the voltage LOW
Serial.println("Low");
Serial.flush();
delay(100); // wait for a second
Serial.println("Test2");
Serial.flush();
}
But it kept rebooting and the LED wouldn't flicker consistently. I was guessing it might be related to the input voltage from the USB, but before I try again with my (last) board I wanted to find out if my laptop USB port is a valid output of power for the board?
Link to the actual boards:
https://www.amazon.com/Makerfocus-ESP82 ... B01IK9GEQG