Slider

A slider returns a value based on its position.
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_Schieberegler(){
int value = analogRead(pin_0_slider);
function_0_Schieberegler();
}
  
int value = analogRead(pin_0_slider);
  
void function_0_Schieberegler(){
int value = analogRead(pin_0_slider);
state = 1;
}
  

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