// This Program is an Example Arduino for ESP32,
//Hello World and analog Input to serial terminal
// List of include headers file here
#include <Arduino.h>
// put function declarations here:
//int myFunction(int, int);
void HelloWorld();
//#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();
}
void loop() {
// put your main code here, to run repeatedly:
AiVal = analogRead(Ai6);
Serial.printf("\rAnalog 6 Value = %d ", AiVal);
delayMicroseconds(50000);
}
//>>---- 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(100);
Serial.println("Get Ready ....");
delay(100);
Serial.println("Hello world");
delay(100);
}