Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

int PinLed =10;

int Pot =A0;


int ValorPot = 0;

void setup ()
{
pinMode(PinLed, OUTPUT);
}

void loop()
{
ValorPot = analogRead(Pot);
analogWrite(PinLed, ValorPot/4);
}

You might also like