int BreathingLight[3]={3,5,9};
void setup() {
// put your setup code here, to run once:
for(int i=0;i<=2;i++)
{
pinMode(BreathingLight[i],OUTPUT);
}
}
void loop() {
// put your main code here, to run repeatedly:
for(int j=0;j<=2;j++)
{
for (int i=0;i<=255;i++)
{
analogWrite(BreathingLight[j],i);
delay(10);
}
for (int i=255;i>=0;i--)
{
analogWrite(BreathingLight[j],i);
delay(10);
}
delay(30);
}
}