it shows this error...
Arduino: 1.6.6 (Windows 10), Board: "Arduino/Genuino Uno"
Warning: platform.txt from core 'Arduino ARM (32-bits) Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
no1:49: error: variable or field 'pinMode' declared void
pinMode(lockMotor, OUTPUT);
^
no1:50: error: expected constructor, destructor, or type conversion before '(' token
pinMode(redLED, OUTPUT);
^
no1:51: error: expected constructor, destructor, or type conversion before '(' token
pinMode(greenLED, OUTPUT);
^
no1:52: error: expected constructor, destructor, or type conversion before '(' token
pinMode(programSwitch, INPUT);
^
no1:54: error: 'Serial' does not name a type
Serial.begin(9600); // Uncomment the Serial.bla lines for debugging.
^
no1:55: error: 'Serial' does not name a type
Serial.println("Program start."); // but feel free to comment them out after it's working right.
^
no1:57: error: expected constructor, destructor, or type conversion before '(' token
digitalWrite(greenLED, HIGH); // Green LED on, everything is go.
^
no1:62: error: variable or field 'knockSensorValue' declared void
knockSensorValue = analogRead(knockSensor);
^
no1:64: error: expected unqualified-id before 'if'
if (digitalRead(programSwitch) == HIGH) { // is the program button pressed?
^
no1:67: error: expected unqualified-id before 'else'
} else {
^
no1:72: error: expected unqualified-id before 'if'
if (knockSensorValue >= threshold) {
^
C:\Users\Muhamad\Documents\Arduino\no1\no1.ino: In function 'void listenToSecretKnock()':
no1:106: error: invalid conversion from 'long unsigned int (*)()' to 'int' [-fpermissive]
now = millis;
^
no1:122: error: invalid conversion from 'long unsigned int (*)()' to 'int' [-fpermissive]
now = millis;
^
no1:129: error: 'validateKnock' was not declared in this scope
if (validateKnock() == true) {
^
no1:130: error: 'triggerDoorUnlock' was not declared in this scope
triggerDoorUnlock();
^
no1:143: error: 'validateKnock' was not declared in this scope
validateKnock;
^
C:\Users\Muhamad\Documents\Arduino\no1\no1.ino: At global scope:
no1:161: error: variable or field 'triggerDoorUnlock' declared void
void triggerDoorUnlock {
^
no1:162: error: expected '}' before ';' token
Serial.println("Door unlocked!");
^
no1:166: error: expected constructor, destructor, or type conversion before '(' token
digitalWrite(lockMotor, HIGH);
^
no1:167: error: expected constructor, destructor, or type conversion before '(' token
digitalWrite(greenLED, HIGH); // And the green LED too.
^
no1:169: error: expected constructor, destructor, or type conversion before '(' token
delay (lockTurnTime); // Wait a bit.
^
no1:171: error: expected constructor, destructor, or type conversion before '(' token
digitalWrite(lockMotor, LOW); // Turn the motor off.
^
no1:174: error: expected unqualified-id before 'for'
for (i = 0; i < 5; i++) {
^
no1:174: error: 'i' does not name a type
for (i = 0; i < 5; i++) {
^
no1:174: error: 'i' does not name a type
for (i = 0; i < 5; i++) {
^
no1:181: error: expected declaration before '}' token
}
^
exit status 1
variable or field 'pinMode' declared void
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.