YourESP32 Sketch SimpleBLINK

From ArduinoInfo
Jump to: navigation, search

/* YourESP32 Example: Sketch Simple BLINK
    SEE: https://ESP32Info.Info
  - WHAT IT DOES
  Blinks an LED!
  - SEE the comments after "//" on each line below
  - CONNECTIONS:
   -
   -
  - V1.00 10/02/2018
   Questions: terry@yourduino.com */

/*-----( Import needed libraries )-----*/
/*-----( Declare Constants and Pin Numbers )-----*/
#define  ledPin   21  // Pins for LED (with 220 ohm resistors) to GND
/*-----( Declare objects )-----*/
/*-----( Declare Variables )-----*/


void setup()   /****** SETUP: RUNS ONCE ******/
{
  Serial.begin(115200);
  delay(1000); // time to bring up serial monitor
  Serial.println("Simple BLINK ");
  pinMode(ledPin, OUTPUT);

}//--(end setup )---


void loop()   /****** LOOP: RUNS CONSTANTLY ******/
{
  digitalWrite(ledPin, HIGH);  //Turn the LED ON
  delay(500);
  digitalWrite(ledPin, LOW); // OFF again
  delay(1000);

}//--(end main loop )---

/*-----( Declare User-written Functions )-----*/
//NONE yet

//*********( THE END )***********