Question.5
What will be the voltage measured on pin A0 of Arduino UNO, if the LED is at its 32% brightness?
const int pinInp = A0;
const int ledOp = 9;
void setup() {
Serial.begin(9600);
pinMode(ledOp, OUTPUT);
analogReference(INTERNAL);
}
void loop() {
int analogValue = analogRead(pinInp);
analogWrite(ledOp,analogValue/4);
while(1);
}