I am assuming that you mean it is printing a horizontal line the complete width, then either filling downwards, or upwards. The lines that print to the LCD are: 'lcd.setCursor(number-1,lineToPrintOn);' and 'lcd.setCursor(number,lineToPrintOn);' , depending on whether the number is 0 or above. You could try reversing the arguements so that they become 'lcd.setCursor(lineToPrintOn,number-1);' and 'lcd.setCursor(lineToPrintOn,number);' respectively to see if that solves the issue. If you have a different chipset in your LCD, it may reverse the horizontal and vertical coordinate arguements. If you are still having issues, contact me via my instructible (link in the comments) and I'll see if I can help further.
Sorry to hear this isn't working. Are you using the code exactly as I have produced it. If so, do you have the 'LiquidCrystal I2C' library installed on your system? The one I have is by Frank de Brabander. The 'More info' link brings up this github link: github.com/johnrickman/LiquidCrystal_I2C I hope that helps.
Hi riccardo. Do you have the LiquidCrystal_I2C library installed? That is probably your most likely culprit. This works on the basis you are using an I2C LCD. If not, you will need to chage the setup to reflect your LCD setup.
@@bobsyers hi, i solved my problem, the problem was that the liquidCrystal_I2C command is wrong, is LCD.Init() not LCD.Begin(). The last one is good only for liquidCrystal.H
Thank you. Re the Count + 1, I can't really remember. My only guess is to stop a divide by zero error if the count starts at 0. I suppose I ought to review it and see if it works without the +1!