ou812
March 30, 2021, 2:29pm
1
I'm having trouble eliminating two characters that appear behind my counter value.
Printing blank spaces, as shown in "lesson 19" in the youtube series, only clears the entire second row, including my counter value. I doesn't matter if the value is 1,2,3,4,5 or even 6 characters long, these two lined characters always show up. Because the number varies in length, I can't just set the cursor to a location behind it and clear them.
I am using an UNO and a TC1602A-21T LCD.
Can anyone assist?
Thanks Much
Final_Code.ino (2.06 KB)
I can't see your code, but are you using println?
Please remember to use code tags when posting code
Because the number varies in length, I can't just set the cursor to a location behind it and clear them.
Actually, yes you could, because print/println return the number of characters you printed.
as shown in "lesson 19" in the youtube series,
I have no idea what that means.
J-M-L
March 30, 2021, 3:03pm
3
in your code you do
lcd.print[color=red]ln[/color](buttonPushCounter );
the two ugly character your see are due to using println() instead of print. You sent '\r' and '\n' to be displayed on the screen.
just do lcd.print(buttonPushCounter);and you'll be fine
ou812
March 30, 2021, 4:00pm
4
Thank you, J-M-L
that was the problem
my reference to the youtube series was a reply to "Chiedozie Nwankwo" on the tech Support team.
Thanks Again !!!
ou812:
my reference to the youtube series was a reply to "Chiedozie Nwankwo" on the tech Support team.
Nope, still not getting it.
PaulRB
March 30, 2021, 6:25pm
6
TheMemberFormerlyKnownAsAWOL:
Nope, still not getting it.
I think it's a joke name, sir. Like "Sillius Soddus" or "Biggus Dickus".
PaulRB:
I think it's a joke name, sir. Like "Sillius Soddus" or "Biggus Dickus".
Does he rank higher than anyone in Rome?
ou812
April 1, 2021, 12:36pm
8
NO, really.....here's a capture
I thought the Uno had a 328? :o
system
Closed
July 30, 2021, 2:06pm
10
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.