int led = 2;
int pot = 34;
void setup()
{
pinMode(led, OUTPUT);
}
void loop()
{
// relacionado ao POTENCIOMETRO para fazer o brilho do led aumentar ou diminuir
int potvalue = analogRead(pot);
int f=map(potvalue,0,4095,0,256);
analogWrite(led, f);
delay(20);
}