statement cannot resolve adress of overloaded function
what does that mean?????
Isn't it obvious?
(Is there something wrong with your punctuation keys?)
nope
im a newbie
;lcd.print("[ o ]")
that is the line it says the error is
Ever thought of posting code?
i am trying to make a ping pong game 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);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("arduino pingpong");
}
void loop() {;
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
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! ")
;lcd.setCursor(0, 0)
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[o ]")
;delay(10)
;lcd.clear
//change dirction
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[ o ]")
;delay(10)
;lcd.clear
;lcd.print("[ o]")
;delay(10)
;lcd.clear
;}
lcd.clear
Is that all?
You'll find code easier to follow if the semicolons go at the end of lines, like full-stops (periods, if you must)
u mean clear all, then yes
if not do you mean where it highlights from when i compile it, then no its
;lcd.print("[ o ]")
";" go on the other side of the function. As such
lcd.print("[ o ]"); <= proper place
lcd.clear(); <= need to include "();"
void loop() {; <= what is this doing here?
.
.
.
;} <= and here?
LCD.clear; doesn't make a lot of sense.
When i take the brakets from the front i get another error,
but puting the colon at the end got the same error
Fix it first, and then show us the new errors.
lcd.clear clears the lcd,btw i have an lcd on a proto shield on arduino
What do mean "front"?
Have you ever seen any code looking like what you have posted?
Do you think there might be a reason for that?
when i do that i get this error
expected ';' before 'lcd'
lcd.clear clears the lcd,btw
No, LCD.clear (); may clear the LCD, but LCD.clear; most certainly does not.
Post your fixed code, and we will see where the error is.
when i look at other code it doesent have that, but if i don't i get that error: so what do i do
expected ';' before 'lcd'
i_luv_arduino:
so what do i do
If you're not going to post your updated code, then I would say stop posting would be the thing to do.
lcd.clear; doesn't do what you think.
lcd.clear(); does do what you think.
Can you see the difference?
If you want to post obfuscated C, there's a forum for that.
This is not that forum.
Put semicolons at the end of lines, not the beginning.
Fix your code, then we can talk.