byte LED = 3;
byte ANG_PIN = 3;
int x = 0;
void setup() {
pinMode(LED, OUTPUT);
}
void loop() {
x = analogRead(ANG_PIN);
x = map(x, 0, 1023, 0, 255);
analogWrite(LED, x);
}
byte LED = 3;
byte ANG_PIN = 3;
int x = 0;
void setup() {
pinMode(LED, OUTPUT);
}
void loop() {
x = analogRead(ANG_PIN);
x = map(x, 0, 1023, 0, 255);
analogWrite(LED, x);
}