What happens if run the code below? Select all that apply.
#define BLUE 3
#define GREEN 5
#define RED 6
void setup()
{
pinMode(RED, OUTPUT);
pinMode(BLUE, OUTPUT);
pinMode(GREEN, OUTPUT);
digitalWrite(RED, LOW);
digitalWrite(GREEN, LOW);
digitalWrite(BLUE, LOW);
}
void loop()
{
for(int i = 0; i <255; i+=1)
{
analogWrite(BLUE, i);
analogWrite(RED, 255-i);
delay(10);
}
}
The RGB LED starts from pure red and transitions to pure blue. This pattern continues indefinitely.
The RGB LED starts from pure red and transitions to pure blue with purple in between. Then, it starts to transition to purple than to pure red. This pattern continues indefinitely.
The RGB LED starts from bright purple to dim purple. This pattern continues indefinitely.
The RGB LED starts from pure red and transitions to pure blue showing mixed shades in between (for example, purple). This pattern continues indefinitely.