Serial LCD 1.1 slcd.print error

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, salmanfarisvp, jeremy882, crail.lyu969

Post Reply
chrisnet
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Wed May 16, 2012 12:28 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Electronic Brick Touch Sensor

Serial LCD 1.1 slcd.print error

Post by chrisnet » Wed May 16, 2012 12:35 pm

Everything is printing fine but one thing I can not print a variable it gives me 4 lines in its place.

slcd.setCursor(0, 2);
slcd.print("Zone: ");
slcd.setCursor(6, 2);
slcd.print(varZoneTouch);
slcd.setCursor(7, 2);
slcd.print(" Selected");

in the above code everything print but the varZoneTouch variable!
can anyone help PLEASE!

chrisnet
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Wed May 16, 2012 12:28 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Electronic Brick Touch Sensor

Re: Serial LCD 1.1 slcd.print error

Post by chrisnet » Wed May 16, 2012 9:43 pm

I have it working!
Made this change:

slcd.setCursor(0, 2);
slcd.print("Zone: ");
slcd.setCursor(6, 2);
slcd.print(varZoneTouch,DEC);
slcd.setCursor(7, 2);
slcd.print(" Selected");

Post Reply