What's wrong with this project

#include <LiquidCrystal.h>

LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

void setup() {
  lcd.begin(16,2);

  lcd.setCursor(0,0);
  lcd.print("working")
  lcd.setCursor(0,1);
  lcd.print("working1") 
}

void loop() {

}

ARDUINO UNO

Compilation error: redefinition of 'void setup()'

Please edit your post to add code tags ("</>" editor button).

There is nothing wrong with what is visible, but the forum software does not format the code correctly.

To test your setup, start with the blink example in the Arduino IDE. Files>Examples>...

lcd.print("working")
  lcd.setCursor(0,1);
  lcd.print("working1") 

missing some ;

The reported error message prompted you to look for duplicate declaration of setup() function which is not the case. Therefore, it is very probable that there are one or more syntactical/semantics errors in the codes under the setup() function which have been pointed out in post #3 by @qubits-us.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.