1 void setup() {
2 int whiteLed1 = 3;
3 int redLed = 4;
4 int yellowLed = 5;
5 int greenLed = 6;
6 int whiteLed2 = 7;
7 }
8
9 void setup()
10 for (int i; i <=7; i++);
11 pinMode (i, OUTPUT);
12 }
13
14 void loop(){
15 for (int i; i 7<=7; i++);
16 digitalWrite (i, HIGH)
Ошибка
C:\Users\Дрюня\AppData\Local\Temp.arduinoIDE-unsaved202304-12224-1bx0uqw.sjj5\sketch_jan4a\sketch_jan4a.ino:9:13: error: expected constructor, destructor, or type conversion before ‘;’ token
C:\Users\Дрюня\AppData\Local\Temp.arduinoIDE-unsaved202304-12224-1bx0uqw.sjj5\sketch_jan4a\sketch_jan4a.ino: In function ‘int voidsetup()’:
C:\Users\Дрюня\AppData\Local\Temp.arduinoIDE-unsaved202304-12224-1bx0uqw.sjj5\sketch_jan4a\sketch_jan4a.ino:11:15: error: ‘i’ was not declared in this scope
C:\Users\Дрюня\AppData\Local\Temp.arduinoIDE-unsaved202304-12224-1bx0uqw.sjj5\sketch_jan4a\sketch_jan4a.ino: In function ‘void loop()’:
C:\Users\Дрюня\AppData\Local\Temp.arduinoIDE-unsaved202304-12224-1bx0uqw.sjj5\sketch_jan4a\sketch_jan4a.ino:15:20: error: expected ‘;’ before numeric constant
C:\Users\Дрюня\AppData\Local\Temp.arduinoIDE-unsaved202304-12224-1bx0uqw.sjj5\sketch_jan4a\sketch_jan4a.ino:15:24: error: expected ‘)’ before ‘;’ token
C:\Users\Дрюня\AppData\Local\Temp.arduinoIDE-unsaved202304-12224-1bx0uqw.sjj5\sketch_jan4a\sketch_jan4a.ino:15:26: error: ‘i’ was not declared in this scope
C:\Users\Дрюня\AppData\Local\Temp.arduinoIDE-unsaved202304-12224-1bx0uqw.sjj5\sketch_jan4a\sketch_jan4a.ino:16:29: error: expected ‘}’ at end of input
exit status 1
Compilation error: expected constructor, destructor, or type conversion before ‘;’ token