I was trying to implement the idea that when the cursor reaches the end of the LCD display in the Arduino Starter Kit, it would clear the screen and continue with the program. But, a void error message appeared:
"Arduino: 1.6.5 (Mac OS X), Board: “Arduino Uno”
Binary.ino: In function ‘void loop()’:
Binary:42: error: invalid use of ‘void’
invalid use of ‘void’
This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences."
Here is the piece of code that gave this error message:
while(lcd.cursor() = (16,0)){The lcd.cursor() function moves the cursor, it does not return the current cursor position, ie the function is void, hence the error message.
I have not downloaded your code, please post it here, but if you need to know where the cursor is then you must hold its current values in variables and test those values.