prog.cpp: In function ‘void setup()’:
prog.cpp:11:15: error: ‘OUTPUT’ was not declared in this scope
pinMode (IN4, OUTPUT);
^~~~~~
prog.cpp:11:21: error: ‘pinMode’ was not declared in this scope
pinMode (IN4, OUTPUT);
^
prog.cpp:6:13: error: ‘A1’ was not declared in this scope
#define An1 A1
^
prog.cpp:16:10: note: in expansion of macro ‘An1’
pinMode (An1, INPUT);
^~~
prog.cpp:16:15: error: ‘INPUT’ was not declared in this scope
pinMode (An1, INPUT);
^~~~~
prog.cpp:7:13: error: ‘A2’ was not declared in this scope
#define An2 A2
^
prog.cpp:17:10: note: in expansion of macro ‘An2’
pinMode (An2, INPUT);
^~~
prog.cpp:19:19: error: ‘HIGH’ was not declared in this scope
analogWrite (An1, HIGH);
^~~~
prog.cpp:19:23: error: ‘analogWrite’ was not declared in this scope
analogWrite (An1, HIGH);
^
prog.cpp: In function ‘void loop()’:
prog.cpp:6:13: error: ‘A1’ was not declared in this scope
#define An1 A1
^
prog.cpp:26:17: note: in expansion of macro ‘An1’
if (digitalRead(An1) == LOW){
^~~
prog.cpp:26:20: error: ‘digitalRead’ was not declared in this scope
if (digitalRead(An1) == LOW){
^
prog.cpp:26:25: error: ‘LOW’ was not declared in this scope
if (digitalRead(An1) == LOW){
^~~
prog.cpp:27:22: error: ‘HIGH’ was not declared in this scope
digitalWrite (IN4, HIGH); //Назат/вперед
^~~~
prog.cpp:27:26: error: ‘digitalWrite’ was not declared in this scope
digitalWrite (IN4, HIGH); //Назат/вперед
^
prog.cpp:34:25: error: ‘digitalWrite’ was not declared in this scope
digitalWrite (IN4, LOW); //Назат/вперед
^
prog.cpp:35:22: error: ‘HIGH’ was not declared in this scope
digitalWrite (IN5, HIGH); //ВКЛ/ВЫКЛ
^~~~