const int potPin = 34;
const int outPin = 4;
int potValue = 0;
void setup() {
pinMode(outPin, OUTPUT);
delay(1000);
}
void loop() {
potValue = analogRead(potPin);
analogWrite(outPin,potValue);
}
const int potPin = 34;
const int outPin = 4;
int potValue = 0;
void setup() {
pinMode(outPin, OUTPUT);
delay(1000);
}
void loop() {
potValue = analogRead(potPin);
analogWrite(outPin,potValue);
}