Meu primeiro projeto arduino - tinkercard
C++
void setup()
{
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
}
void loop()
{
analogWrite(13, 255);
analogWrite(12, 0);
analogWrite(11, 0);
delay(1000);
analogWrite(13, 255);
analogWrite(12, 255);
analogWrite(11, 102);
delay(1000);
}