Go Down

Topic: ошибку выдает,кто поможет (Read 565 times) previous topic - next topic

sania2017

void setup() {
 pinMode(11, OUTPUT);
 pinMode(12, OUTPUT);
 pinMode(13, OUTPUT);

}

void loop() {
 for (int t = 0; t <= 2; t++) {
   digitalWrite(13, LOW);
   digitalWrite(11, HIGH);
   delay(1000);
   digitalWrite(11, LOW);
   digitalWrite(12, HIGH);
   delay(1000);
   digitalWrite(12, LOW);
   digitalWrite(13, HIGH);
   delay(1000);
}
 digitalWrite(13, LOW);

 for (int t = 0; t <= 2; t++) {
   digitalWrite(11, HIGH);
   delay(150);
   digitalWrite(11, LOW);
   delay(150);
   digitalWrite(13, HIGH);
   delay(150);
   digitalWrite(13, LOW);
   delay(150);
   digitalWrite(12, HIGH);
   delay(150);
   digitalWrite(12, LOW);
   delay(150);
}
 for (int t = 0; t <= 5; t++) {
   digitalWrite(11, HIGH);
   delay(150);
   digitalWrite(11, LOW);
   delay(150);
   digitalWrite(12, HIGH);
   delay(150);
   digitalWrite(12, LOW);
   delay(150);
   digitalWrite(13, HIGH);
   delay(150);
   digitalWrite(13, LOW);
   delay(150);
   digitalWrite(12, HIGH);
   delay(150);
   digitalWrite(12, LOW);
   delay(150);

}
 for (int t = 0; t <= 10; t++) {
   digitalWrite(11, HIGH);
   digitalWrite(12, HIGH);
   digitalWrite(13, HIGH);
   delay(150);
   digitalWrite(11, LOW);
   digitalWrite(12, LOW);
   digitalWrite(13, LOW);
   delay(150);
}
 for (int t = 0; t <= 10; t++) {
   digitalWrite(13, HIGH);
   delay(150);
   digitalWrite(13, LOW);
   delay(150);
   digitalWrite(12, HIGH);
   delay(150);
   digitalWrite(12, LOW);
   delay(150);
   digitalWrite(11, HIGH);
   delay(150);
   digitalWrite(11, LOW);
   delay(150);

}
 for (int t = 0; t <= 10; t++) {
   digitalWrite(11, HIGH);
   delay(150);
   digitalWrite(11, LOW);
   delay(150);
   digitalWrite(12, HIGH);
   delay(150);
   digitalWrite(12, LOW);
   delay(150);
   digitalWrite(13, HIGH);
   delay(150);
   digitalWrite(13, LOW);
   delay(150);
}

Robin2

#1
Aug 24, 2017, 08:48 pm Last Edit: Aug 24, 2017, 08:49 pm by Robin2
I don't know what language your title is in, never mind what it says so I have no idea what you need help with.

This is the English language part of the Forum. There are sections for other languages.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

sania2017


void setup() {
  pinMode(11, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);

}

void loop() {
  for (int t = 0; t <= 2; t++) {
    digitalWrite(13, LOW);
    digitalWrite(11, HIGH);
    delay(1000);
    digitalWrite(11, LOW);
    digitalWrite(12, HIGH);
    delay(1000);
    digitalWrite(12, LOW);
    digitalWrite(13, HIGH);
    delay(1000);
  }
  digitalWrite(13, LOW);

  for (int t = 0; t <= 2; t++) {
    digitalWrite(11, HIGH);
    delay(150);
    digitalWrite(11, LOW);
    delay(150);
    digitalWrite(13, HIGH);
    delay(150);
    digitalWrite(13, LOW);
    delay(150);
    digitalWrite(12, HIGH);
    delay(150);
    digitalWrite(12, LOW);
    delay(150);
  }
  for (int t = 0; t <= 5; t++) {
    digitalWrite(11, HIGH);
    delay(150);
    digitalWrite(11, LOW);
    delay(150);
    digitalWrite(12, HIGH);
    delay(150);
    digitalWrite(12, LOW);
    delay(150);
    digitalWrite(13, HIGH);
    delay(150);
    digitalWrite(13, LOW);
    delay(150);
    digitalWrite(12, HIGH);
    delay(150);
    digitalWrite(12, LOW);
    delay(150);

  }
  for (int t = 0; t <= 10; t++) {
    digitalWrite(11, HIGH);
    digitalWrite(12, HIGH);
    digitalWrite(13, HIGH);
    delay(150);
    digitalWrite(11, LOW);
    digitalWrite(12, LOW);
    digitalWrite(13, LOW);
    delay(150);
  }
  for (int t = 0; t <= 10; t++) {
    digitalWrite(13, HIGH);
    delay(150);
    digitalWrite(13, LOW);
    delay(150);
    digitalWrite(12, HIGH);
    delay(150);
    digitalWrite(12, LOW);
    delay(150);
    digitalWrite(11, HIGH);
    delay(150);
    digitalWrite(11, LOW);
    delay(150);

  }
  for (int t = 0; t <= 10; t++) {
    digitalWrite(11, HIGH);
    delay(150);
    digitalWrite(11, LOW);
    delay(150);
    digitalWrite(12, HIGH);
    delay(150);
    digitalWrite(12, LOW);
    delay(150);
    digitalWrite(13, HIGH);
    delay(150);
    digitalWrite(13, LOW);
    delay(150);

 }

spycatcher2k

Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

sania2017


sania2017


spycatcher2k

Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

sania2017

а чего именно нехватает???

spycatcher2k

Nope - I'm sure I'm being trolled. Good bye.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

sania2017

https://youtu.be/6wOEK5fEPdI
вот сылка

Wawa

void loop() { << opening bracket


 // your code


}  << closing bracket is missing

arduarn

#11
Aug 25, 2017, 12:00 am Last Edit: Aug 25, 2017, 12:02 am by arduarn
если ты не умеешь писать по-английски, лучше задавать вопрос здесь.

robtillaart

@sania2017
Please use google translate to also offer a English version of the text you post

Пожалуйста, используйте google translate, чтобы также предлагать английскую версию текста, который вы публикуете

Thanks
благодаря

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up