Answers for "c++ freecodecamp course 10 hours youtube"

C++
0

c++ freecodecamp course 10 hours youtube

int analogPin = 3;// potentiometer wiper (middle terminal) connected to analog pin 3 
int val = 0; // variable to store the read value

void setup() {
   Serial.begin(9600); // setup serial
   analogReference(EXTERNAL); // the voltage applied to the AREF pin (0 to 5V only) 
      // is used as the reference.
}

void loop() {
   val = analogRead(analogPin); // read the input pin
   Serial.println(val); // debug value
}
Posted by: Guest on June-29-2021

Browse Popular Code Answers by Language