LCD automatic management?


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit,

    thanks for your help

    The values will only have 3 digits max.

    This is the code i used:
    Code:
    lcdout $fe,2," MAX  AVG  MIN  " 
    lcdout $fe,$c0," ",DEC MAXIMO,"C ",DEC MEDIA,"C ",DEC MINIMO,"C     "
    I'm not able to try this now, but your sugestion is something like this ?

    Code:
    lcdout $fe,2," MAX  AVG  MIN  " 
    lcdout $fe,81,DEC MAXIMO,"C"
    lcdout $fe,87,DEC MEDIA,"C"
    lcdout $fe,8c,DEC MINIMO,"C"
    My best regards
    Rui

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    CORRECTION... I said second line 80... C0 is correct.

    So
    Code:
    lcdout $fe,2," MAX  AVG  MIN  " 
    lcdout $fe,C0,DEC MAXIMO,"C" 'Starts at fist space
    lcdout $fe,C6,DEC MEDIA,"C"    'Starts at space 6
    lcdout $fe,CB,DEC MINIMO,"C"  'Starts at space 11
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    thanks

    .

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    CORRECTION... I said second line 80... C0 is correct.

    So
    Code:
    lcdout $fe,2," MAX  AVG  MIN  " 
    lcdout $fe,C0,DEC MAXIMO,"C" 'Starts at fist space
    lcdout $fe,C6,DEC MEDIA,"C"    'Starts at space 6
    lcdout $fe,CB,DEC MINIMO,"C"  'Starts at space 11
    Ahem: 80 <>$80
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Ahem: 80 <>$80
    OOPPS

    Thanks Joe
    Code:
    lcdout $fe,$C0,DEC MAXIMO,"C" 'Starts at fist space
    lcdout $fe,$C6,DEC MEDIA,"C"    'Starts at space 6
    lcdout $fe,$CB,DEC MINIMO,"C"  'Starts at space 11
    Dave
    Always wear safety glasses while programming.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    I noticed that typo, was just checking the code

    A bit of fine tunning and...perfect

    Thanks guys

    .

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    I noticed that typo, was just checking the code

    A bit of fine tunning and...perfect

    Thanks guys

    .
    Pretty sure you saw the typo, the reason to correct is 2 years from now a newbie wanders in from out in the cold with the same question, and gets confused. This way the thread ends useful to others, that's all.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Hi Joe S.,

    you are correct in every way.

    The only reason i didnt posted it was because at that time i was testing the code and waiting to see the results to post also the results

    .

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  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