int pot = A0;
int slidePot = A1;
int potValue = 0;
int slidePotValue = 0;
void setup() {
// put your setup code here, to run once:
pinMode(pot, INPUT);
pinMode(slidePot, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
potValue = analogRead(pot);
slidePotValue = analogRead(slidePot);
mappedSlidePotValue = map(slidePotValue, 0, 1023, 0, 100);
Serial.println(mappedSlidePotValue);
}