Search
 
SCRIPT & CODE EXAMPLE
 

CPP

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
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: error c4001 
Cpp :: c++ single comment 
Cpp :: easy way to encrypt a c++ file line by line 
Cpp :: play roblox vr on quest 2 
Cpp :: empty 2d array as a member of a class class c++ 
Cpp :: free pair c++ 
Cpp :: cpp Case value is not a constant expression 
Cpp :: libraries required for gaming in c++ 
Cpp :: GoPro camera for kids aus 
Cpp :: Maximum Cake Tastiness codeforces solution 
Cpp :: how to get a section of a string in c++ 
Cpp :: do c++ ints neeed to be initlaized 
Cpp :: JAJA 
Cpp :: std::hash 
Cpp :: find largest number in each row in array c++ using function 
Cpp :: draw point sfml 
Cpp :: deal with bad input cpp 
Cpp :: std::random_device 
Cpp :: Initialize Vector Iterator with begin() function 
Cpp :: C++ Vector Initialization method 02 
Cpp :: sort in descending order c++ 
Cpp :: sort 3 numbers using swap cpp 
Cpp :: vprintf 
Cpp :: how to get the last digit of a number 
Cpp :: three-way comparison c++ 
Cpp :: In every C++ program: 
Cpp :: c++ string to vector int 
Cpp :: constants in cpp 
Cpp :: Fibonacci Series Program. in c++ 
Cpp :: cpp hello world 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =