Flashing LED Slow to Fast

int led={2,4,7};
int x=150,t;

void setup()
{
Serial.begin(9600);
for(int t=0; t<=2; t++)
{
pinMode(led[t],OUTPUT);
}
}

void loop()
{
for(int i=0; i<=2; i++)
{
Serial.println(led*);*

  • for(x=150; x>=30; x–)*
  • {*
    _ digitalWrite(led*,HIGH);_
    _
    delay(x);_
    _ digitalWrite(led,LOW);
    delay(x);
    Serial.println(x);
    if(x==30)
    {
    while(1)
    {
    digitalWrite(led,HIGH);
    delay(x);
    digitalWrite(led,LOW);
    delay(x);*_

* }*
* }*
* }*

* }*
}
from this code has problem. I need Flashing LED Slow to Fast from first LED to second LED and third LED. By the first and second LED still Flashing constantly(30)
i think my problem is while(1) it forever loop but i need Flashing constantly(30)
Sorry for english language skills

Please post your code inside of CODE tags. Edit your post, highlight all of your code and click on the # icon above.

Yes. Your problem seems to be with the while(1) statement. while is followed by a condition in the braces(), e.g. while (x==3) During the while statement, you have to check/change the value of x, otherwise it won't know when to end the statement.

KirAsh4: Please post your code inside of CODE tags. Edit your post, highlight all of your code and click on the # icon above.

(As explained in the very first message in the forum, titled "How to use this forum - please read"...)