NOOB HERE , Need Help ... please


i don't understand coding . decided follow youtubers . first got error said :

arduino: 1.6.0 (windows 8), board: "arduino uno"


ping_new.ino: in function 'void loop()':
ping_new.ino:74:1: error: function-definition not allowed here before '{' token
ping_new.ino:84:1: error: function-definition not allowed here before '{' token
ping_new.ino:89:1: error: expected '}' @ end of input
error compiling.

  report have more information with
  "show verbose output during compilation"
  enabled in file > preferences.


so ... add "}" after void loop .. appears :


arduino: 1.6.0 (windows 8), board: "arduino uno"

ping_new.ino:71:6: error: expected constructor, destructor, or type conversion before '(' token
error compiling.

  report have more information with
  "show verbose output during compilation"
  enabled in file > preferences.


what should .. need finish project faster school project .. please me finish project .. thank if want me ..


these code ( attachment )

this line of code
code: [select]
delay(200);is not in function, hence error.  did mean in loop() function ?


Arduino Forum > Using Arduino > Programming Questions > NOOB HERE , Need Help ... please


arduino

Comments