When I try to compile I get this error
"call of overloaded 'write (int)' is ambigiuos"
Here is the parts of my code I think the error is in:
#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
};
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);
And the other part:
lcd.setCursor(6, 1);
lcd.write(0);
delay(100);
if (pushButton == HIGH); {
x = x+1;
}