Potentiometer

A potentiometer returns a dynamic value based on the rotation.
Information

Type : User Input

Mode : Analog

Pins : 0-7 (analog)

Output Values : 0-1023

Tutorial : funduino

Image by funduino, CC-BY-SA.

Connection scheme

Scheme made with Fritzing.

Functions

Await Input

Await Input State

Awaits a analog value.

void function_0_Potentiometer(){
int value = analogRead(pin_0_potentiometer);
function_0_Potentiometer();
}
  
int value = analogRead(pin_0_potentiometer);
  
void function_0_Potentiometer(){
int value = analogRead(pin_0_potentiometer);
state = 1;
}
  

Last modified April 12, 2022: updated code snippets (e7162de)