Shop OBEX P1 Docs P2 Docs Learn Events
2 x 8 LCD AppMod question - Got it fixed! — Parallax Forums

2 x 8 LCD AppMod question - Got it fixed!

stamptrolstamptrol Posts: 1,731
edited 2008-01-24 18:25 in General Discussion
··· Edit Jan 24 -··· Added extra code to clear screen just before writing the temperature.
······················ Will post project in "Completed Projects" in a few days. - Tom


·Hello, all

··· I'm using the 2 x 8 LCD appmod as the interface in a controller I've built around a bs2px.

··· The main screen is meant to show the ambient temperature on the top line and the current time on the second line. Other screens allow changing the setpoint temperatures and the changeover times.

··· I've used parts of the sample code to clear the screen, print a character, etc. The unit is set for 4-bit operation and each character is sent as a lownib and highnib.

···Everything works fine, except·that immediately after printing the temperature on the top line, an extra 32 appears beside it. So, my 17 degree temperature looks like·· 1732. The line with the time on it works fine.

·· I've looked through the code for a spurious space character or some other reason for the 32 to be printed, to no avail. It might be to do with the button reading routine, but I don't see where.

· Has anyone had similar fun?

·Cheers,
···

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk

http://www.siskconsult.com


Post Edited (stamptrol) : 1/24/2008 9:41:51 PM GMT

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-01-24 16:48
    Tom -

    It would be a good deal easier for us to help you if you attach a copy of your program, or at least attach the display routines, and the variable assignments if it's proprietary.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    There is no pleasure in having nothing to do;
    the fun is in having lots to do, and not doing it!
  • stamptrolstamptrol Posts: 1,731
    edited 2008-01-24 18:25
    Bruce,

    Will do later today. The only thing I had available when posting was the reference to the AppMod sample program.

    Thanks,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
Sign In or Register to comment.