Trouble with LCD 2x8 and sequential display of values


Closed Thread
Results 1 to 31 of 31

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Bad post, sorry...
    but I can' compile the code : "Cannot open file (Include file "P16F684.inc" not found)" ?!
    Last edited by fratello; - 24th February 2012 at 09:35.

  2. #2
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    I am so sorry ... ....
    What a dumb I am ...
    Of course, Mr. Darrel have the answer : http://www.picbasic.co.uk/forum/show...2195#post52195
    Everything works just fine !

  3. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Everything works just fine ! Thanks again, Mr.Darrel !
    One last (I hope ) request : Can this "lint" be removed ? I try to find another value for "LCDOUT $nn", but without good results ...
    Thanks !
    Attached Images Attached Images   

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Two ways ...

    1) Add a 0 to the last LCDOUT ...
    Code:
        lcdout $1F,0
    2) You can make the battery icon 1 pixel taller ...
    Code:
                ELSE
                    BattLevel = (Volts - MinBat +1) * 15 / (MaxBat - MinBat +1)
                ENDIF
            ENDIF
            GOSUB ShowBattery
        ENDIF
    RETURN
    
    ;----[Show Battery Icon  0 - 15, 0=Empty  15=Full]--------------------------
    ShowBattery:
        lcdout $FE,$C0,1,$FE,$48,$0A,$1F
        for y = 5 to 1 step -1
            if BattLevel >= (y * 3) then
                Char = $1F
            else
                if BattLevel >= (y * 3 - 1) then
                    Char = $17
                else
                    if BattLevel >= (y * 3 - 2) then
                        Char = $13
                    else
                        Char = $11
                    endif
                endif
            endif
            lcdout Char
        next y
        lcdout $1F
    return
    DT

  5. #5
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Just finish to write my own code, based on previous source (see post #1 ), it's good for me ...BUT ...
    Of course, Mr.Darrel solution it's BETTER !
    I owe with some thousands of e-beer ! Thanks again !

  6. #6
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    This is how my car-dashboard will be (this is beta version ) ...
    The original is in the last picture.
    Attached Images Attached Images     
    Last edited by fratello; - 27th February 2012 at 15:43.

  7. #7
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: Trouble with LCD 2x8 and sequential display of values

    Congratulations! Very good Job!!!
    Thanks and Regards;
    Gadelhas

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