prog.cpp: In function ‘void setup()’:
prog.cpp:22:15: error: ‘OUTPUT’ was not declared in this scope
pinMode(Q1, OUTPUT); // INISIALISASI YANG SEBAGAI OUTPUT
^~~~~~
prog.cpp:22:3: error: ‘pinMode’ was not declared in this scope
pinMode(Q1, OUTPUT); // INISIALISASI YANG SEBAGAI OUTPUT
^~~~~~~
prog.cpp:28:15: error: ‘INPUT’ was not declared in this scope
pinMode(S1, INPUT); // INISIALISASI YANG SEBAGAI OUTPUT
^~~~~
prog.cpp:32:1: error: ‘Serial’ was not declared in this scope
Serial.begin(9600);
^~~~~~
prog.cpp: In function ‘void loop()’:
prog.cpp:36:28: error: ‘A0’ was not declared in this scope
int nilaiHall = analogRead(A0);
^~
prog.cpp:36:17: error: ‘analogRead’ was not declared in this scope
int nilaiHall = analogRead(A0);
^~~~~~~~~~
prog.cpp:37:13: error: ‘map’ was not declared in this scope
nilaiHall = map(nilaiHall, 179, 857, 0, 255);
^~~
prog.cpp:41:3: error: ‘Serial’ was not declared in this scope
Serial.print(nilaiHall);
^~~~~~
prog.cpp:47:11: error: ‘digitalRead’ was not declared in this scope
int rem = digitalRead(REMSWITCH);
^~~~~~~~~~~
prog.cpp:52:12: error: ‘LOW’ was not declared in this scope
if (rem == LOW){R = 1;} else {R = 0;}
^~~
prog.cpp:53:16: error: ‘HIGH’ was not declared in this scope
if (sensor1 == HIGH){W = 1;} else {W = 0;}
^~~~
prog.cpp:54:16: error: ‘HIGH’ was not declared in this scope
if (sensor2 == HIGH){V = 10;} else {V = 0;}
^~~~
prog.cpp:55:16: error: ‘HIGH’ was not declared in this scope
if (sensor3 == HIGH){U = 100;} else {U = 0;}
^~~~
prog.cpp:57:43: error: ‘delay’ was not declared in this scope
if (R == 1){Serial.println("Ngerem Citt");delay(100);
^~~~~
prog.cpp:58:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q6, LOW); // Rem
^~~
prog.cpp:58:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, LOW); // Rem
^~~~~~~~~~~~
prog.cpp:68:44: error: ‘delay’ was not declared in this scope
if (H == 100){Serial.print("Step1 100 ");delay(100);
^~~~~
prog.cpp:69:20: error: ‘HIGH’ was not declared in this scope
digitalWrite(Q6, HIGH); // Step 1
^~~~
prog.cpp:69:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, HIGH); // Step 1
^~~~~~~~~~~~
prog.cpp:70:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q5, LOW);
^~~
prog.cpp:76:44: error: ‘delay’ was not declared in this scope
if (H == 110){Serial.print("Step2 110 ");delay(100);
^~~~~
prog.cpp:77:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, nilaiGas); // Step 2
^~~~~~~~~~~~
prog.cpp:78:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q5, LOW);
^~~
prog.cpp:79:20: error: ‘HIGH’ was not declared in this scope
digitalWrite(Q4, HIGH);
^~~~
prog.cpp:84:43: error: ‘delay’ was not declared in this scope
if (H == 10){Serial.print("Step3 010 ");delay(100);
^~~~~
prog.cpp:85:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, nilaiGas); // Step 3
^~~~~~~~~~~~
prog.cpp:86:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q5, LOW);
^~~
prog.cpp:87:19: error: ‘HIGH’ was not declared in this scope
analogWrite(Q4, HIGH);
^~~~
prog.cpp:87:3: error: ‘analogWrite’ was not declared in this scope
analogWrite(Q4, HIGH);
^~~~~~~~~~~
prog.cpp:92:43: error: ‘delay’ was not declared in this scope
if (H == 11){Serial.print("Step4 011 ");delay(100);
^~~~~
prog.cpp:93:20: error: ‘HIGH’ was not declared in this scope
digitalWrite(Q6, HIGH); // Step 4
^~~~
prog.cpp:93:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, HIGH); // Step 4
^~~~~~~~~~~~
prog.cpp:94:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q5, LOW);
^~~
prog.cpp:95:3: error: ‘analogWrite’ was not declared in this scope
analogWrite(Q4, HIGH);
^~~~~~~~~~~
prog.cpp:100:41: error: ‘delay’ was not declared in this scope
if (H == 1){Serial.print("Step5 001 ");delay(100);
^~~~~
prog.cpp:101:20: error: ‘HIGH’ was not declared in this scope
digitalWrite(Q6, HIGH); // Step 5
^~~~
prog.cpp:101:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, HIGH); // Step 5
^~~~~~~~~~~~
prog.cpp:104:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q3, LOW);
^~~
prog.cpp:105:3: error: ‘analogWrite’ was not declared in this scope
analogWrite(Q2, nilaiGas);
^~~~~~~~~~~
prog.cpp:108:43: error: ‘delay’ was not declared in this scope
if (H == 101){Serial.print("Step6 101 ");delay(100);
^~~~~
prog.cpp:109:20: error: ‘HIGH’ was not declared in this scope
digitalWrite(Q6, HIGH); // Step 6
^~~~
prog.cpp:109:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, HIGH); // Step 6
^~~~~~~~~~~~
prog.cpp:112:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q3, LOW);
^~~
prog.cpp:113:3: error: ‘analogWrite’ was not declared in this scope
analogWrite(Q2, HIGH);
^~~~~~~~~~~
prog.cpp:116:50: error: ‘delay’ was not declared in this scope
if (H == 111){Serial.print("Hall Rusak 1 111 ");delay(100);
^~~~~
prog.cpp:117:20: error: ‘HIGH’ was not declared in this scope
digitalWrite(Q6, HIGH); // Bebas
^~~~
prog.cpp:117:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, HIGH); // Bebas
^~~~~~~~~~~~
prog.cpp:118:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q5, LOW);
^~~
prog.cpp:124:49: error: ‘delay’ was not declared in this scope
if (H == 0){Serial.print("Hall Rusak 2 000 ");delay(100);
^~~~~
prog.cpp:125:20: error: ‘HIGH’ was not declared in this scope
digitalWrite(Q6, HIGH); // Bebas
^~~~
prog.cpp:125:3: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(Q6, HIGH); // Bebas
^~~~~~~~~~~~
prog.cpp:126:20: error: ‘LOW’ was not declared in this scope
digitalWrite(Q5, LOW);
^~~