void setup() {
// put your setup code here, to run once
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
pinMode(A0, INPUT);
pinMode(A1, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int rez1 = analogRead(A0);
int rez2 = analogRead(A1);
int led1 = map(rez1, 0, 1023, 0, 255);
int led2 = map(rez2, 0, 1023, 0, 255);
analogWrite(11, led1);
analogWrite(10, led2);
}