#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 <= 255; i++)
{
int yarkost1 = map(i, 0, 255, 0, 31);
int yarkost2 = map(i, 0, 255, 255, 31);
analogWrite(LED1_PIN, yarkost1);
analogWrite(LED2_PIN, yarkost2);
delay(20);
}
}