Ви не увійшли.
Сторінки 1
int t;
int i;
int d;
void setup() {
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
analogWrite(10, 150);
delay(3000);
analogWrite(10, 0);
for (int i = 1; i < 5; i++) {
digitalWrite(11, HIGH);
delay(300);
digitalWrite(11, LOW);
delay(400);
digitalWrite(9, HIGH);
delay(3000);
digitalWrite(9, LOW);
delay(100);
}
d = 0;
digitalWrite(12, HIGH);
delay (2000);
i = 30;
while (i < 250) {
analogWrite(10, i);
delay(100);
i = i + 1;
if (i == 100);
digitalWrite(9, i);
delay(100);
i = i + 1;
if (i == 100);
{
digitalWrite(12, LOW);
}
d = d + 1;
if (d * 100 > (2800 — i * 10)) { матюкає перевірка на цю стрічку
digitalWrite(11, HIGH);
delay(300);
digitalWrite(11, LOW);
d = 0;
}
}
while (t < 70) {
digitalWrite(11, HIGH);
delay(300);
digitalWrite(11, LOW);
delay(300);
}
}
нище опис
C:UsersВадимDocumentsArduinosketch________sketch________.ino: At global scope:sketch________:51:1: error: expected unqualified-id before 'while'sketch________:57:1: error: expected declaration before '}' tokenexit status 1stray '342'
Сторінки 1