// This Program is an Example Arduino for ESP32,
//Hello World to serial terminal & Blink a Built-in LED.
// List of include headers file here
#include <Arduino.h>
// put function declarations here:
//int myFunction(int, int);
void HelloWorld();
void Blinked_Msg();
//#define LED 2 <-- no Need for ESP32 DevKit v1. has LED_BUILTIN
u_int8_t Ai6 = A6;
int AiVal;
void setup() {
// put your setup code here, to run once:
// int result = myFunction(2, 3);
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200, SERIAL_8N1);
HelloWorld();
//Blinked_Msg();
}
void loop() {
// put your main code here, to run repeatedly:
/*digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
Blinked_Msg();
delay(500);*/
AiVal = analogRead(Ai6);
Serial.printf("\rAnalog 6 Value = %d ", AiVal);
delayMicroseconds(10000);
}
//>>---- Hear Start other void & Fucntions -----<<//
// put function definitions here:
// for Example:
/* int myFunction(int x, int y) {
return x + y;
} */
void HelloWorld(){
Serial.println("Serial Port, Initilized...");
delay(1000);
Serial.println("Get Ready ....");
delay(1000);
Serial.println("Hello world");
delay(1000);
}
void Blinked_Msg()
{
static int i = 0;
Serial.printf("\rBuilt in LED is Blinked %d time", i);
i += 1;
}