c 2b 2b freecodecamp course 10 hours youtube

Solutions on MaxInterview for c 2b 2b freecodecamp course 10 hours youtube by the best coders in the world

showing results for - "c 2b 2b freecodecamp course 10 hours youtube"
Jakob
04 Mar 2020
1int analogPin = 3;// potentiometer wiper (middle terminal) connected to analog pin 3 
2int val = 0; // variable to store the read value
3
4void setup() {
5   Serial.begin(9600); // setup serial
6   analogReference(EXTERNAL); // the voltage applied to the AREF pin (0 to 5V only) 
7      // is used as the reference.
8}
9
10void loop() {
11   val = analogRead(analogPin); // read the input pin
12   Serial.println(val); // debug value
13}
similar questions