Pages: 1 [2]   Go Down
Author Topic: ERROR!!!  (Read 636 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is the new code without semi colons at the begining
Code:

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);


byte paddleup[8] = {
  0b10000,
  0b10000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte paddletwo[8] = {
  0b00000,
  0b00000,
  0b10000,
  0b10000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte paddleone[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b10000,
  0b10000,
  0b00000,
  0b00000
};

byte paddledown[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b10000,
  0b10000
 
};
byte ballone[8] = {
  0b00000,
  0b00100,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte balltwo[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00100,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte ballthree[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00100,
  0b00000,
  0b00000
};
byte ballfour[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00100
};
byte win[8] = {
  0b10101,
  0b01010,
  0b10101,
  0b01010,
  0b10101,
  0b01010,
  0b10101,
  0b01010
};







void setup() {
  // set up the LCD's number of columns and rows:
  lcd.createChar(0, ballone);
  // create a new character
  lcd.createChar(1, balltwo);
  // create a new character
  lcd.createChar(2, ballthree);
  // create a new character
  lcd.createChar(3, ballfour); 
  // create a new character
  lcd.createChar(4, paddleup);
  // create a new character
  lcd.createChar(5, paddletwo);
  // create a new character
  lcd.createChar(6, paddleone);
  // create a new character
  lcd.createChar(7, paddledown); 
  // create a new character
  lcd.createChar(8, win);
 
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("arduino pingpong");
}

x = 0

pushButton = 0;

void loop() {;
   
 
  lcd.setCursor(0, 0);
  lcd.clear
  ();lcd.print("[       o      ]")
  delay(500)
  lcd.clear()
  lcd.print("PING        PONG");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  lcd.setCursor(0, 1);
  lcd.print("       GO!      ");
  delay(500)
  lcd.setCursor(0, 0)
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  lcd.clear()
  lcd.print("[     o      ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o      ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o    ]");
  delay(100)
  delay(100)
  lcd.clear()
  lcd.print("[o]");
  delay(1000);
  lcd.clear()
  lcd.print("Press go 2 play");
    ;val = digitalRead(inPin); 
  if (val == LOW);
  lcd.print("start in 3");
  delay(1000);
  lcd.clear()
  lcd.print("start in 2");
  delay(1000);
  lcd.clear()
  lcd.print("start in 1");
  delay(1000);
  lcd.clear()
  lcd.print("GO!");
  delay(1000);
  lcd.clear()
  lcd.write(2);
  lcd.print("      ");
  lcd.write(5);
  lcd.print("       ");
  lcd.write(2);
  lcd.setCursor(7, 0);
  lcd.write(3);
  delay(100);
   val = digitalRead(0); 
  if (val == LOW);
  x = x+1
 
   

 
 
  //I WAS HERE
  lcd.setCursor(6, 0)
  lcd.write(3)
  if (pushButton == HIGH) {
  x = x+1
  }
   

  lcd.setCursor(5, 1)
  lcd.write(0)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
   
  lcd.setCursor(4, 1)
  lcd.write(1)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
 
  lcd.setCursor(3, 1)
  lcd.write(2)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
 
  lcd.setCursor(2, 1)
  lcd.write(3)
  delay(100)
  if (x > 4)
{
  goto arduino; 
}
;else
{
goto gameover;
}
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is half the code without semi colons at the begining, not a troll,
Code:
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);


byte paddleup[8] = {
  0b10000,
  0b10000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte paddletwo[8] = {
  0b00000,
  0b00000,
  0b10000,
  0b10000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte paddleone[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b10000,
  0b10000,
  0b00000,
  0b00000
};

byte paddledown[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b10000,
  0b10000
 
};
byte ballone[8] = {
  0b00000,
  0b00100,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte balltwo[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00100,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte ballthree[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00100,
  0b00000,
  0b00000
};
byte ballfour[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00100
};
byte win[8] = {
  0b10101,
  0b01010,
  0b10101,
  0b01010,
  0b10101,
  0b01010,
  0b10101,
  0b01010
};







void setup() {
  // set up the LCD's number of columns and rows:
  lcd.createChar(0, ballone);
  // create a new character
  lcd.createChar(1, balltwo);
  // create a new character
  lcd.createChar(2, ballthree);
  // create a new character
  lcd.createChar(3, ballfour); 
  // create a new character
  lcd.createChar(4, paddleup);
  // create a new character
  lcd.createChar(5, paddletwo);
  // create a new character
  lcd.createChar(6, paddleone);
  // create a new character
  lcd.createChar(7, paddledown); 
  // create a new character
  lcd.createChar(8, win);
 
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("arduino pingpong");
}

x = 0

pushButton = 0;

void loop() {;
   
 
  lcd.setCursor(0, 0);
  lcd.clear
  ();lcd.print("[       o      ]")
  delay(500)
  lcd.clear()
  lcd.print("PING        PONG");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  lcd.setCursor(0, 1);
  lcd.print("       GO!      ");
  delay(500)
  lcd.setCursor(0, 0)
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  lcd.clear()
  lcd.print("[     o      ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o      ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o    ]");
  delay(100)
  delay(100)
  lcd.clear()
  lcd.print("[o]");
  delay(1000);
  lcd.clear()
  lcd.print("Press go 2 play");
    ;val = digitalRead(inPin); 
  if (val == LOW);
  lcd.print("start in 3");
  delay(1000);
  lcd.clear()
  lcd.print("start in 2");
  delay(1000);
  lcd.clear()
  lcd.print("start in 1");
  delay(1000);
  lcd.clear()
  lcd.print("GO!");
  delay(1000);
  lcd.clear()
  lcd.write(2);
  lcd.print("      ");
  lcd.write(5);
  lcd.print("       ");
  lcd.write(2);
  lcd.setCursor(7, 0);
  lcd.write(3);
  delay(100);
   val = digitalRead(0); 
  if (val == LOW);
  x = x+1
 
   

 
 
  //I WAS HERE
  lcd.setCursor(6, 0)
  lcd.write(3)
  if (pushButton == HIGH) {
  x = x+1
  }
   

  lcd.setCursor(5, 1)
  lcd.write(0)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
   
  lcd.setCursor(4, 1)
  lcd.write(1)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
 
  lcd.setCursor(3, 1)
  lcd.write(2)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
 
  lcd.setCursor(2, 1)
  lcd.write(3)
  delay(100)
  if (x > 4)
{
  goto arduino; 
}
;else
{
goto gameover;
}
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

here is the fixed program without the semicolon beginings
Code:
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);


byte paddleup[8] = {
  0b10000,
  0b10000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte paddletwo[8] = {
  0b00000,
  0b00000,
  0b10000,
  0b10000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte paddleone[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b10000,
  0b10000,
  0b00000,
  0b00000
};

byte paddledown[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b10000,
  0b10000
 
};
byte ballone[8] = {
  0b00000,
  0b00100,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte balltwo[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00100,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};

byte ballthree[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00100,
  0b00000,
  0b00000
};
byte ballfour[8] = {
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00000,
  0b00100
};
byte win[8] = {
  0b10101,
  0b01010,
  0b10101,
  0b01010,
  0b10101,
  0b01010,
  0b10101,
  0b01010
};







void setup() {
  // set up the LCD's number of columns and rows:
  lcd.createChar(0, ballone);
  // create a new character
  lcd.createChar(1, balltwo);
  // create a new character
  lcd.createChar(2, ballthree);
  // create a new character
  lcd.createChar(3, ballfour); 
  // create a new character
  lcd.createChar(4, paddleup);
  // create a new character
  lcd.createChar(5, paddletwo);
  // create a new character
  lcd.createChar(6, paddleone);
  // create a new character
  lcd.createChar(7, paddledown); 
  // create a new character
  lcd.createChar(8, win);
 
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("arduino pingpong");
}

x = 0

pushButton = 0;

void loop() {;
   
 
  lcd.setCursor(0, 0);
  lcd.clear
  ();lcd.print("[       o      ]")
  delay(500)
  lcd.clear()
  lcd.print("PING        PONG");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  lcd.setCursor(0, 1);
  lcd.print("       GO!      ");
  delay(500)
  lcd.setCursor(0, 0)
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  delay(500)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(500)
  lcd.clear()
  lcd.print("[     o        ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o         ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[ o            ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o          ]");
  delay(100)
  lcd.clear()
  lcd.print("[      o       ]");
  delay(100)
  lcd.clear()
  lcd.print("[         o    ]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[             o]");
  delay(100)
  lcd.clear()
  lcd.print("[            o ]");
  delay(100)
  lcd.clear()
  lcd.print("[          o   ]");
  delay(100)
  lcd.clear()
  lcd.print("[        o     ]");
  lcd.clear()
  lcd.print("[     o      ]");
  delay(100)
  lcd.clear()
  lcd.print("[    o      ]");
  delay(100)
  lcd.clear()
  lcd.print("[   o    ]");
  delay(100)
  delay(100)
  lcd.clear()
  lcd.print("[o]");
  delay(1000);
  lcd.clear()
  lcd.print("Press go 2 play");
    ;val = digitalRead(inPin); 
  if (val == LOW);
  lcd.print("start in 3");
  delay(1000);
  lcd.clear()
  lcd.print("start in 2");
  delay(1000);
  lcd.clear()
  lcd.print("start in 1");
  delay(1000);
  lcd.clear()
  lcd.print("GO!");
  delay(1000);
  lcd.clear()
  lcd.write(2);
  lcd.print("      ");
  lcd.write(5);
  lcd.print("       ");
  lcd.write(2);
  lcd.setCursor(7, 0);
  lcd.write(3);
  delay(100);
   val = digitalRead(0); 
  if (val == LOW);
  x = x+1
 
   

 
 
  //I WAS HERE
  lcd.setCursor(6, 0)
  lcd.write(3)
  if (pushButton == HIGH) {
  x = x+1
  }
   

  lcd.setCursor(5, 1)
  lcd.write(0)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
   
  lcd.setCursor(4, 1)
  lcd.write(1)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
 
  lcd.setCursor(3, 1)
  lcd.write(2)
  delay(100)
  if (pushButton == HIGH) {
  x = x+1
  }
 
  lcd.setCursor(2, 1)
  lcd.write(3)
  delay(100)
  if (x > 4)
{
  goto arduino; 
}
;else
{
goto gameover;
}
Logged

UK
Offline Offline
Shannon Member
****
Karma: 184
Posts: 11173
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is the new code without semi colons at the begining

... or anywhere else. I don't believe you're genuinely so useless that this code is the best you can do after all the advice you've had so far. If it is, you're wasting your time here. And if it isn't, you're wasting our time.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am not a troll.
I don't waste your time either.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

here is the fixed program without the semicolon beginings

Do you understand where to place semicolons?
Logged

Global Moderator
0
Offline Offline
Newbie
*****
Karma: 0
Posts: 40
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Please let's not call anyone trolls on the forum. If you have such suspicion, make it to the moderators, not to the forum.

To the original poster: It does appear that you have a lot to learn before you can do a project that is longer than one screen.

I suggest you review all the tutorials you can find on the Arduino or other websites such as

http://arduino.cc/en/Tutorial/HomePage
http://learn.adafruit.com/
http://itp.nyu.edu/physcomp/Intro/HomePage
http://tronixstuff.wordpress.com/
http://todbot.com/blog/spookyarduino/

Study well program structure, do all the exercises and understand them.

When you have done this you are ready to embark on your own project.   Create a MINIMAL test for your LCD project; by minimal I mean code that will fit on one screen. Understand exactly what it is supposed to do, and then if it doesn't work come back here and we'll try to help you.

Best wishes,
Michael
Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 4019
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ya thanks, but I actaully copied and pasted, from example code and I have looked at almost all of them.


Copied, pasted and changed beyond all recognition.

Sorry Michael but I have to +1 PeterH and ask the OP to Read This Thread:
Quote
Read this before posting a programming question ...
http://arduino.cc/forum/index.php/topic,97455.0.html

BTW, once you've replied in a thread is there some way to not have it show up in your replies?
Because IMO this thread is a waste of time and I'll just stop short with that.
Logged

Examples can be found in your IDE.

Pages: 1 [2]   Go Up
Jump to: