lcd menu problems


Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Mar 2009
    Posts
    48

    Default lcd menu problems

    helllo

    here is my problem, i got the posttemp variable declared like this

    Code:
    posttemp var byte
    now i want to change the value of the variable like this

    Code:
    if menu = 2 then 
    posttemp=$0AF0
        LCDOUT $FE,1, "Max temperatura:"
        lcdout $FE,$c0,128, "28.00 C"
        pause 2000
    endif
    
    if menu = 3 then 
    posttemp=$0BB8
        LCDOUT $FE,1, "Max temperatura:"
        lcdout $FE,$c0,128, "30.00 C"
        pause 2000
    endif
    and then compare posttemp like this

    Code:
    if temp >= posttemp then gosub s3
    but this isn't working, program is compiled without erors, everythig is working fine, but my program gosub to s3 ever time, no matter if the condition is true!

    and if i put it this way
    Code:
    if temp >= $0AF0 then gosub s3
    then everything is working just fine but i want to change value $0AF0 like in above not working examplel

    thx in advance

    --
    www.mtskola.com
    Last edited by xxxxxx; - 2nd April 2009 at 19:16.

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  3. Sending menu to PC from PIC16F876A
    By joseph Degorio in forum Serial
    Replies: 2
    Last Post: - 12th November 2007, 07:03
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts