Here is the rest, the begining:
#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() {;