void setup() {
pinMode(A0, INPUT);
pinMode(3, OUTPUT);
}
void loop() {
int input = analogRead(A0);
analogWrite(3, map(input, 0, 1023, 0, 255));
}
void setup() {
pinMode(A0, INPUT);
pinMode(3, OUTPUT);
}
void loop() {
int input = analogRead(A0);
analogWrite(3, map(input, 0, 1023, 0, 255));
}