#define led_RED 11
#define led_GREEN 10
#define led_BLUE 9
void setup() {
pinMode(led_RED, OUTPUT);
pinMode(led_GREEN, OUTPUT);
pinMode(led_BLUE, OUTPUT);
}
void loop() {
for(int x = 0; x<255; x++){
delay(10);
analogWrite(led_RED, x);
for(int y = 255; y>0; y = y-1){
delay(10);
analogWrite(led_GREEN, y);
}
}
}
void colourSet(int redVal, int grnVal, int blueVal){
analogWrite(led_RED, redVal);
analogWrite(led_GREEN, grnVal);
analogWrite(led_BLUE, blueVal);
}