//#define LEDR 13
//#define LEDG 12
//#define LEDB 11

#define LEDR A2
#define LEDG A1
#define LEDB A0

int PR = A5;
int PG = A4;
int PB = A3;

int valr ;
int valg ;
int valb ;

float VALR ;
float VALG ;
float VALB ;

void setup() {

  Serial.begin(9600);

}

void loop() {

valr = analogRead(PR);
  VALR = map(valr, 0, 1023, 0, 255);
  analogWrite(LEDR, VALR);
  Serial.println(VALR);


valg = analogRead(PG);
  VALG = map(valg, 0, 1023, 0, 255);
  analogWrite(LEDG, VALG);
  Serial.print(VALG);


valb = analogRead(PB);
  VALB = map(valb, 0, 1023, 0, 255);
  analogWrite(LEDB, VALB);
  Serial.print(VALB);

delay(100);


}