// Define the Analog pin
#define ANALOG_PIN PA0
void setup(){
//Initialize the serial communication at 9600 baud
Serial.begin(9600);
//Initilize the ADC pin
pinMode(ANALOG_PIN, INPUT);
}
void loop(){
//Read the ADC value
int adcValue = analogRead(ANALOG_PIN);
//Tx the ADC value over UART
Serial.print("ADC Value : ");
Serial.println(adcValue);
//small dealy
delay(1000);
}