#define POT A0
void setup() {
Serial.begin(9600);
pinMode(POT, INPUT);
}
void loop() {
int potInput = analogRead(POT);
int mapInput = map(potInput, 0, 1023, 0, 100);
Serial.println(mapInput);
delay(2000);
}
#define POT A0
void setup() {
Serial.begin(9600);
pinMode(POT, INPUT);
}
void loop() {
int potInput = analogRead(POT);
int mapInput = map(potInput, 0, 1023, 0, 100);
Serial.println(mapInput);
delay(2000);
}