int lectura = 0;
void setup() {
DDRD=0B11111111;
PORTD=0;
}
void loop() {
lectura = map(analogRead(A0),0,1023,0,255);
PORTD=lectura;
delay(200);
}
int lectura = 0;
void setup() {
DDRD=0B11111111;
PORTD=0;
}
void loop() {
lectura = map(analogRead(A0),0,1023,0,255);
PORTD=lectura;
delay(200);
}