Hi
First place to look is the line where you declare "count"
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int buttonPin = 8;
int count
void setup(){
Your missing a semi-colon at the end of the line hence the error message.
It should read
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int buttonPin = 8;
int count;
void setup(){
Also you are going wrong with your LCD display
{
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 2);
//when button is pressed increment the count
if(buttonPin = HIGH, count++);
// print the number of times the button is pressed:
lcd.print("Count is (count)" );
}
First of all your comment correctly notes that the second line is index 1 but you set the cursor to position 0, 2.
Secondly your lcd.print statement will print the string "Count is (count)" on the display.
What you actually need is
lcd.print("Count is ");
lcd.print(count);
Which will print the value contained in count after the string "Count is ".
Ian