#define LED1_PIN 3
#define LED2_PIN 5
void setup()
{
pinMode(LED1_PIN, OUTPUT);
pinMode(LED2_PIN, OUTPUT);
}
void loop()
{
for (int i = 0; i <= 12; i++)
{
int yarkost1 = map(i, 0, 12, 0, 31);
int yarkost2 = map(i, 0, 12, 255, 31);
analogWrite(LED1_PIN, yarkost1);
analogWrite(LED2_PIN, yarkost2);
delay(5000 / 12);
}
}